Rational Number

Definitionnoun phrase

What is a rational number?

A rational number is any number that can be written as a fraction of two integers, ab, where b is not 0. Fractions, integers, terminating decimals, and repeating decimals are rational numbers: 34, −5 = −51, 1.6 and 0.333… all qualify. Numbers such as √2 and π are irrational.

In Spanish
número racional
Also called
fraction number, rational
Grade level
6-8
Grade 7Grade 8Algebra 1CCSS 7.NS.A.2.dCCSS 8.NS.A.1GEDSATACT

Rational Number in a picture

Where rational numbers fitNested boxes: whole numbers sit inside the integers, which sit inside the rational numbers, which are part of the real numbers. Fractions and decimals such as 3/4, -2.5 and 0.333… are rational but not integers. Irrational numbers such as the square root of 2 and pi are real but not rational.Real numbersRational numbersIntegers−3, −17Whole numbers0, 1, 2, 3, …473/4−2.50.333…−7/2Irrational√2π√7never ends,never repeatsRational: can be written a/b, with a and b integers and b ≠ 0
Whole numbers are integers, and integers are rational numbers, so each box sits inside the next. Irrational numbers such as √2 and π are the real numbers outside the rational box.

Formal definition and notation

A number r is rational if r = ab for some integers a and b with b ≠ 0. Every integer is rational, because n = n1, and so is every fraction and its opposite. A number is rational exactly when its decimal form terminates or eventually repeats; numbers whose decimals never end and never repeat, such as √2 and π, are irrational. Adding, subtracting, multiplying or dividing two rational numbers (except dividing by 0) always gives a rational number.

Symbol Read it as Meaning
ab a over b the form every rational number can take, with integers a, b and b ≠ 0
0.3 zero point three repeating the bar shows digits that repeat forever: 0.333… = 13
Q Q the usual name for the set of all rational numbers (from quotient)

Key facts

  • Every integer and every whole number is rational: 7 = 71 and 0 = 01.
  • A terminating decimal is rational: 2.35 = 235100 = 4720.
  • A repeating decimal is rational: 0.6 = 23 and 0.27 = 2799 = 311.
  • The square root of a perfect square is rational (√49 = 7); the square root of any other whole number, such as √50, is irrational.
  • Between any two rational numbers there is another one, such as their average: between 13 and 12 lies 512.

Test for a rational number

Test for a rational number
r = ab, with a and b integers and b ≠ 0
a
any integer: positive, negative or 0
b
any integer except 0

If you can find such a fraction, the number is rational. Terminating decimal: 0.125 = 1251000 = 18. Repeating decimal: 0.4 = 49.

Try it: place a rational number

Interactive

Drag the point or use the arrow keys. It moves in steps of one fourth, and the readout names the rational number as a fraction, a decimal and a mixed number; try the negative side too.

This interactive needs JavaScript. The worked examples below show the same ideas step by step.

Rational Number examples, step by step

Example 1: A terminating decimal

Warm-up

Show that 2.35 is a rational number.

  1. 2.35 has two decimal places, so write it over 100: 2.35 = 235100.
  2. Simplify by dividing by 5: 235100 = 4720.
  3. 47 and 20 are integers and 20 is not 0, so 2.35 is rational.

Answer: 2.35 = 47/20, a ratio of two integers, so it is rational.

Example 2: A repeating decimal

Core

Write 0.45 = 0.454545… as a fraction.

  1. Let x = 0.4545…. Two digits repeat, so multiply by 100: 100x = 45.4545….
  2. Subtract: 100x − x = 45.4545… − 0.4545…, so 99x = 45.
  3. Divide: x = 4599.
  4. Simplify by dividing by 9: x = 511.

Answer: 0.45 = 5/11.

Example 3: Sort rational and irrational

Test-style

Which of these numbers are rational: −7, √16, √20, 0.1212…, π2, 3.14?

  1. −7 = −71: rational.
  2. √16 = 4: rational. √20: 20 is not a perfect square, so irrational.
  3. 0.1212… repeats, so it is rational (1299 = 433).
  4. π2 is irrational. 3.14 terminates, so it is rational (it is only close to π).

Answer: Rational: −7, √16, 0.1212… and 3.14. Irrational: √20 and π2.

Common mistakes

✗ Mistake1.6 is a decimal, not a fraction, so it is not rational.
✓ Instead1.6 = 1610 = 85, so it is rational.

A decimal can be rational. Terminating and repeating decimals are rational.

✗ Mistakeπ = 227, so π is rational.
✓ Instead227 ≈ 3.142857 is only close to π ≈ 3.141593. π is irrational.

227 and 3.14 are rational approximations. The exact value of π never ends and never repeats.

✗ MistakeEvery square root is irrational, so √25 is irrational.
✓ Instead√25 = 5 = 51, which is rational.

Square roots of perfect squares are whole numbers. Only square roots of non-perfect squares are irrational.

✗ Mistake−34 is not rational, because rational numbers are positive.
✓ Instead−34 = −34, with integers −3 and 4, so it is rational.

The integers a and b may be negative. Negative fractions and negative integers are rational.

Not to be confused with

Rational Numbervs.Irrational Number

An irrational number cannot be written as a fraction of integers; its decimal never ends and never repeats, like √2 = 1.41421…. A rational number’s decimal stops or repeats.

Rational Numbervs.Integer

Integers are whole numbers and their opposites, like −3, 0 and 8. Every integer is rational, but rational numbers also include fractions such as 12.

Rational Numbervs.Real number

Real numbers are all the numbers on the number line: the rational numbers together with the irrational numbers.

Quick check: 3 questions

Question 1 of 3

Which number is not rational?

Show answer and explanation

Answer: C. 50 is not a perfect square, so √50 ≈ 7.071… never ends or repeats: irrational. −73 is a fraction of integers, √49 = 7, and 0.8 = 89.

Question 2 of 3

Which fraction equals 0.3?

Show answer and explanation

Answer: B. If x = 0.333…, then 10x − x = 3, so x = 39 = 13. Choices A and C are 0.3 and 0.33, which stop; D is 0.03.

Question 3 of 3

Which statement about −12 is true?

Show answer and explanation

Answer: C. −12 is an integer, and every integer is rational because −12 = −121. Being negative does not stop a number from being rational.

Rational Number: frequently asked questions

Is 0 a rational number?

Yes. 0 can be written as 01, 05 or 0 over any nonzero integer, so it fits the definition. What is not allowed is 0 in the denominator: 50 is undefined, not a rational number. 0 is also a whole number and an integer.

Are all fractions rational numbers?

Every fraction made of two integers, with a nonzero bottom, is rational: 38, −114, 93. But an expression that only looks like a fraction need not be: √22 and π4 have irrational parts, so they are irrational. Check that the top and bottom are integers.

How can I tell if a decimal is rational?

Look at how it ends. If it stops, like 0.875, it is rational (78). If a block of digits repeats forever, like 0.272727…, it is rational (311). If it goes on forever with no repeating block, like 0.1010010001… or π, it is irrational. A calculator display cannot always show which case you have.

Practice and tools

Sources

  1. Common Core State Standards, Grade 7 The Number System (7.NS.A.2.d)
  2. Common Core State Standards, Grade 8 The Number System (8.NS.A.1)
  3. OpenStax, Prealgebra 2e, 7.1 Rational and Irrational Numbers
  4. Common Core State Standards, Mathematics Glossary (rational number)

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 7.NS.A.2.d, CCSS 8.NS.A.1

Cite this entry

Effortless Math Team. “Rational Number.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/rational-number/

Flashcard

TermRational Numberab, integers, b ≠ 0
DefinitionA number that can be written as a fraction of two integers. −5, 34, 0.75 and 0.3 are rational; √2 is not.
Study the full deck

Browse all terms in the Math Dictionary · More number system terms · Random term