A rational number is a number that can be written as a ratio. That means that it can be written as a fraction. The numerator and the denominator both need to be whole numbers for it to be rational. For example, 2 is a rational number because it can be written as the fraction 2/1.