How Rational Number Calculator Works?
The Rational Number Calculator works in 4 steps: it reads 2 rational numbers as p/q fractions, applies the chosen operation, reduces the result, and shows the mixed number and decimal. The operator menu covers addition, subtraction, multiplication, and division.
Enter both rational numbers as fractions
Type each number as a numerator p and a non-zero denominator q. A negative rational number such as -5/6 takes a negative numerator.
Choose the operation
The + operator is selected by default. Switch to -, ×, or ÷ for the other 3 operations of rational arithmetic.
Combine the fractions
For
-5/6 + 7/15, the calculator computes (-5 × 15 + 7 × 6)/(6 × 15) = -33/90.Reduce and convert the result
The tool divides -33 and 90 by their greatest common factor (GCF) of 3. The result panel shows -11/30 and the decimal -0.366667.
Rational Number Calculator Formula
The rational number formulas are a/b + c/d = (ad + bc)/bd, a/b - c/d = (ad - bc)/bd, a/b × c/d = ac/bd, and a/b ÷ c/d = ad/bc, with b, d, and c (for division) not equal to 0.
Addition and subtraction
a, b, c, and d are integers. The result is reduced by the GCF of the new numerator and denominator.
Multiplication
Multiply straight across. -2/7 × 21/4 = -42/28 = -3/2.
Division
Flip the second rational number and multiply. Division by the rational number 0 is undefined.
Decimal to p/q
A terminating decimal with n digits after the point becomes a fraction over 10^n. 0.36 = 36/100 = 9/25.
Worked example: 0.75 - 2/9
- Write 0.75 as a fraction: 75/100 = 3/4.
- Find the least common denominator (LCD) of 4 and 9: 36.
- Rewrite both fractions: 3/4 = 27/36 and 2/9 = 8/36.
- Subtract the numerators: 27 - 8 = 19, giving 19/36.
- Check the GCF: GCF(19, 36) = 1, so 19/36 is final. The decimal is 0.5278.
Rational Number Calculator Conversion Table
The rational number conversion table lists 12 rational numbers in p/q form with the decimal value, the decimal type, and the mixed number.
| Rational Number | Fraction Form (p/q) | Decimal (4 places) | Decimal Type | Mixed Number |
|---|---|---|---|---|
| 0.5 | 1/2 | 0.5 | Terminating | — |
| 0.125 | 1/8 | 0.125 | Terminating | — |
| -2.4 | -12/5 | -2.4 | Terminating | -2 2/5 |
| 0.333... | 1/3 | 0.3333 | Repeating (period 1) | — |
| 0.1666... | 1/6 | 0.1667 | Repeating (period 1) | — |
| 0.142857... | 1/7 | 0.1429 | Repeating (period 6) | — |
| 1.75 | 7/4 | 1.75 | Terminating | 1 3/4 |
| -0.8 | -4/5 | -0.8 | Terminating | — |
| 5 | 5/1 | 5 | Integer | 5 |
| 0.2727... | 3/11 | 0.2727 | Repeating (period 2) | — |
| 2.08333... | 25/12 | 2.0833 | Repeating (period 1) | 2 1/12 |
| 0.0625 | 1/16 | 0.0625 | Terminating | — |
What is Rational Number Calculator?
A Rational Number Calculator is a tool that adds, subtracts, multiplies, and divides numbers of the form p/q, where p and q are integers and q ≠ 0. The result stays a rational number and is shown in lowest terms, as a mixed number, and as a decimal.
The set of rational numbers (Q) includes 4 groups: integers such as -3 and 5, proper and improper fractions such as 2/9 and 7/4, terminating decimals such as 0.0625, and repeating decimals such as 0.2727.... Numbers such as √2 and π are irrational: their decimals never end and never repeat, so no integer pair p/q equals them.
Rational numbers are closed under 4 operations. The sum, difference, product, and quotient (with a non-zero divisor) of 2 rational numbers is a rational number. The calculator applies this closure property directly: every output is a fraction p/q with an integer numerator and a positive integer denominator.
What are the uses of Rational Number Calculator?
The Rational Number Calculator has 6 main uses, including signed fraction arithmetic, decimal conversion, and number-system lessons.
Working with negative fractions
Students in grade 7 practice sign rules such as -3/8 - 1/4 = -5/8 and check each answer with the decimal -0.625.
Converting decimals to fractions
Learners rewrite terminating decimals as p/q before combining them. 0.75 - 2/9 becomes 3/4 - 2/9 = 19/36.
Classifying numbers
Teachers use the p/q form to show that 0.2727... = 3/11 is rational and that a non-repeating decimal is irrational.
Balancing financial records
Accountants combine gains and losses written as fractions of a share price, such as +3/8 and -5/16, for a net change of +1/16 dollar.
Computing temperature changes
Science students subtract signed readings such as -2 1/2 °C (27.5 °F) and 3 3/4 °C (38.75 °F) to find a change of 6 1/4 °C (11.25 °F).
Checking exact answers
Programmers and engineers compare an exact fraction such as 1/7 with its decimal 0.1429 to measure rounding error.