What a Rational Number Is
A rational number is any number that can be written as a fraction , where and are integers and . The word “rational” comes from ratio — a comparison of two whole numbers. This one idea gathers up almost every number you have met so far into a single family.
Rational numbers are all the fractions, positive and negative, including the integers and every terminating or repeating decimal. They are closed under the four operations (except division by zero), and the sign rules for integers carry over unchanged. Between any two of them lies another — the number line has no gaps you can point to, though irrationals still fill in more.
The name comes from "ratio": a rational number is any number that can be written as a ratio of two integers. Every integer qualifies because , so the integers sit inside the rationals, just as the whole numbers sit inside the integers. Each new family was built so that one more operation always has an answer: integers make subtraction work, rationals make division (by anything but zero) work.
Classifying Numbers
Every one of these is rational, because each can be written as a fraction:
- Integers: , , .
- Fractions: , , .
- Terminating decimals: , .
- Repeating decimals: .
Show that is rational. Write it as a fraction: . Since and are integers and the bottom is not , the number is rational.
Deciding that is not rational "because it never ends." Repeating decimals are rational: . What makes a decimal irrational is never ending AND never repeating, like
Tip: Whole numbers and integers are just rational numbers with a denominator of . Every integer is rational, but not every rational number is an integer.
Write each as a ratio of integers: , , , .
Show the answerHide the answer
. . . . Each is an integer over a nonzero integer, so each is rational.
Rational Numbers on the Number Line
Rational numbers fill in the gaps between the integers. To place a fraction, split the space between two whole numbers into equal parts. Negative rationals sit to the left of ; positive rationals to the right. As always, farther right means greater.
Every rational number has an exact spot: is reached by cutting each unit into equal pieces and counting of them from (to the left if negative). Because the spot is exact, comparing two rationals is comparing positions, and the rule is the same as for integers: farther right is greater.
Which is greater, or ? Rewrite with a common denominator of :
Since , we have .
Placing to the left of "because it has a fraction." is half a unit left of ; is a whole unit left. So .
Order from least to greatest. As decimals: . Reading the number line left to right:
Tip: To compare tricky rationals, turn them all into the same form — either common-denominator fractions or decimals. With negatives, remember is greater than .
Order , , , from least to greatest.
Show the answerHide the answer
As decimals: , , , . Farthest left is , then , then : .
Absolute Value of Rational Numbers
The absolute value of a rational number is its distance from on the number line, so it is never negative. We write it with bars:
Absolute value is distance from , and distance does not depend on direction or on whether the number is whole. is units left of , so . The rule "drop the sign" works for fractions and decimals for the same reason it works for integers.
because is units from . Watch a sign outside the bars: . The bars make the inside positive first; the outside sign then stays.
Writing because "the number inside is already negative." The bars report a distance, and distances are never negative: .
Tip: Absolute value works the same for fractions and decimals as for integers: find the distance from , which just means make the inside positive.
Evaluate and .
Show the answerHide the answer
and , so the difference is . For the second, the bars give and the outside sign makes it .
Adding and Subtracting Fractions
To add or subtract fractions, first get a common denominator. Then combine the numerators using the integer sign rules:
- Same signs: add the numerators, keep the sign.
- Different signs: subtract, keep the sign of the larger.
Remember: subtracting means adding the opposite.
A negative fraction is a negative count of pieces: is two sixths to the left. Once both fractions count the same-sized pieces, the numerators are ordinary integers, and adding them uses the integer rules: sixths. The denominator never takes part in the sign work.
Compute . Common denominator is :
Putting the sign on the denominator and adding it: . Denominators are never added; rewrite over first: .
Compute . Subtracting a negative adds:
Tip: The denominator only sets the “size” of the pieces — all the sign work happens up in the numerators. Combine numerators using the same rules you learned for integers.
Compute and .
Show the answerHide the answer
Over : . Subtracting a negative adds: .
Adding and Subtracting Decimals
To add or subtract decimals, line up the decimal points and work as usual. The signs follow the exact same integer rules: same signs add, different signs subtract and keep the larger sign.
Signed decimals combine exactly like signed integers, only with smaller steps. is a move of to the left followed by back to the right; the net move is to the left, because the left move was longer.
Compute . Different signs, so subtract the absolute values: . Since , keep the negative sign: .
Subtracting and keeping the wrong sign: . The number with the larger absolute value is , so the answer takes its sign: .
Compute . Subtracting a negative adds:
Tip: Decimals and fractions obey the same sign rules as integers. The only extra care with decimals is keeping the decimal points lined up neatly.
Compute , and .
Show the answerHide the answer
: different signs, , positive: . . .
Multiplying and Dividing Rational Numbers
For both multiplication and division: same signs give a positive, different signs give a negative. Fractions: multiply straight across; to divide, multiply by the reciprocal (“flip the second and multiply”). Decimals: multiply as whole numbers then place the point; to divide, you may shift both points to make the divisor whole.
Every rational number is a signed count, so a product has a sign part and a size part that can be handled separately. The sign follows the integer rule (it came from the distributive property), and the size follows the fraction or decimal method. Deciding the sign first keeps the arithmetic in the second step free of negatives.
: different signs negative. Multiply across and simplify:
: same signs positive. Flip and multiply:
Flipping the sign when taking a reciprocal: the reciprocal of written as . A reciprocal flips the fraction, not the sign: it is , since .
: different signs negative. Multiply , then place two decimal places: . Answer: .
Tip: One motto covers integers, fractions, and decimals: same signs positive, different signs negative. Decide the sign first, then do the arithmetic.
Compute and .
Show the answerHide the answer
Different signs, so negative: , giving . Three negative factors: negative. and , giving .
Terminating vs. Repeating Decimals
Convert a fraction to a decimal by dividing the numerator by the denominator. The result is always either:
- Terminating — the division ends, like ; or
- Repeating — a block of digits repeats forever, like .
We write the repeating block with a bar over it: means
Long division by can only leave the remainders . If a remainder of appears, the division stops (terminates). If not, a remainder must eventually come back, and from that moment the same digits are produced again: the decimal repeats. So every fraction has to do one or the other; there is no third possibility.
Convert . Divide . It terminates. Shortcut: if the denominator's only prime factors are and , the decimal terminates. Here .
Placing the bar over every digit: . Only the part that repeats gets the bar: .
Convert . Divide . The repeats forever because contains a prime other than or .
Tip: Reduce the fraction first. If the reduced denominator has only s and s as factors, the decimal terminates; otherwise it repeats.
Predict whether and terminate, then write their decimals.
Show the answerHide the answer
has only the primes and , so terminates: . contains , so repeats: .
Order of Operations with Rational Numbers
Use the same order every time: Parentheses, Exponents, Multiply/Divide (left to right), Add/Subtract (left to right). The new challenge is tracking signs and fractions at each step.
Nothing about the order changes with fractions and decimals; the order of operations is about operations, not about what kind of numbers they act on. What changes is bookkeeping, so write each step on its own line and resolve each sign as it is created.
Evaluate .
Adding before multiplying: done as . The multiplication comes first: , then .
Evaluate .
Tip: Do one step at a time and write each line. Decide each sign before you compute, and keep fractions in a common denominator when you add or subtract.
Evaluate .
Show the answerHide the answer
Parentheses: . Exponent: . Divide: .
Word Problems with Rational Numbers
Real situations mix signs and fractions: temperatures, money owed, elevation, and recipes. Gaining, rising, and depositing are positive; losing, falling, and spending are negative. Decide the sign of each amount, then add, subtract, multiply, or divide.
Signed rational numbers let one calculation cover every direction of change: a rise and a fall are both "add the change," with the fall written as a negative. That is why a single expression like can describe the whole morning's temperature, and why "how much did it change?" is always .
At a.m. it was C. By noon it rose degrees. Rising means adding:
The noon temperature was C.
Giving the change from to as . Keep the sign of the starting value: degrees.
A recipe needs cup of sugar, but you want to make only half a batch. Multiply:
You need cup of sugar.
Tip: Read carefully to spot the sign of each quantity. “Below,” “owes,” “loses,” and “drops” all signal negative numbers.
An account holds (overdrawn). A deposit of is made, then of the new balance is spent. What is the final balance?
Show the answerHide the answer
After the deposit: . One third of that is . Final balance: .
Going Deeper: Advanced Rational-Number Ideas
Between any two different rational numbers there is always another rational number — in fact, infinitely many. This property is called density. The integers are not dense (there is no integer strictly between and ), but the rationals are. The quickest way to find one is the average (midpoint): the number halfway between and is , and it is always rational when and are.
Find a rational number between and . Take the average:
Check: and , so indeed . We could repeat this forever, so there is no “next” rational number.
There is a second trick for landing between two positive fractions and : add the tops and add the bottoms to form the mediant . Whenever , the mediant sits strictly between them:
Warning: this is not how you add fractions! It is only a way to build an in-between value.
Between and , the mediant is . Check with a common denominator of : , , . So , exactly as promised.
Some numbers can never be written as a fraction of integers; we call them irrational. The famous first example is . Its decimal never terminates and never repeats. Here is a gentle proof that no fraction equals it.
Suppose, for contradiction, that where is fully reduced (no common factors). Squaring both sides:
Then is even, which forces itself to be even, so write . Substituting:
Now is even, so is even too. But then and are both even — they share the factor — contradicting “fully reduced.” No such fraction can exist, so is irrational.
A set is closed under an operation if combining two members always gives another member. The rationals are closed under addition, subtraction, and multiplication — add, subtract, or multiply any two fractions and you get a fraction. They are closed under division too, except by . The integers, by contrast, are not closed under division: escapes the integers. That gap is exactly why we needed to build the rationals.
Tip: To see closure at work, note that . Since integers are closed under and , the top and bottom are integers and , so the sum is again rational.
You already know measures distance from . More powerfully, measures the distance between and on the number line — and the order does not matter, since .
This is why distance is always positive: it does not care which point you start from.
How far apart are and ?
Reversing the order gives the same distance: .
Evaluate .
The result is still a rational number — closure at work.
Tip: With exponents and signs together, resolve the parentheses before squaring, and remember that squaring a negative gives a positive. Track the leading minus sign in front of a whole term all the way to the last line.
Why It Works
A repeating decimal is rational, and here is the trick that proves it: let . Then , and subtracting, , so . Multiplying by a power of that matches the period lines the repeating tails up so they cancel — every repeating decimal yields to the same two lines.
Do not read a proof the way you read a rule. Cover the last line, ask what the previous line forces, and only then uncover it. If a step feels like magic, that is the step to work by hand with a concrete number.
Formulas, Proofs & Tips
What it means. Add with a common denominator, multiply straight across, divide by flipping the second fraction.
Example. .
Why it works. Rewriting over the common denominator makes the pieces the same size so they can be counted together. Division asks "how many fit?", and multiplying by the reciprocal answers it because .
Tip. Simplify before multiplying — cancelling early keeps the numbers small.