Skip to main content
Calculator Fractions

Rational Number Calculator

Perform rational number arithmetic.

Algebra & Rational

Use the Rational Number Calculator

Result
—

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.

  1. 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.

  2. Choose the operation

    The + operator is selected by default. Switch to -, ×, or ÷ for the other 3 operations of rational arithmetic.

  3. Combine the fractions

    For -5/6 + 7/15, the calculator computes (-5 × 15 + 7 × 6)/(6 × 15) = -33/90.

  4. 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/d = (a·d ± c·b) / (b·d)

a, b, c, and d are integers. The result is reduced by the GCF of the new numerator and denominator.

Multiplication

a/b × c/d = (a·c) / (b·d)

Multiply straight across. -2/7 × 21/4 = -42/28 = -3/2.

Division

a/b ÷ c/d = (a·d) / (b·c), c ≠ 0

Flip the second rational number and multiply. Division by the rational number 0 is undefined.

Decimal to p/q

0.d1d2...dn = (d1d2...dn) / 10^n

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

  1. Write 0.75 as a fraction: 75/100 = 3/4.
  2. Find the least common denominator (LCD) of 4 and 9: 36.
  3. Rewrite both fractions: 3/4 = 27/36 and 2/9 = 8/36.
  4. Subtract the numerators: 27 - 8 = 19, giving 19/36.
  5. 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 NumberFraction Form (p/q)Decimal (4 places)Decimal TypeMixed Number
0.51/20.5Terminating—
0.1251/80.125Terminating—
-2.4-12/5-2.4Terminating-2 2/5
0.333...1/30.3333Repeating (period 1)—
0.1666...1/60.1667Repeating (period 1)—
0.142857...1/70.1429Repeating (period 6)—
1.757/41.75Terminating1 3/4
-0.8-4/5-0.8Terminating—
55/15Integer5
0.2727...3/110.2727Repeating (period 2)—
2.08333...25/122.0833Repeating (period 1)2 1/12
0.06251/160.0625Terminating—

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.

Related Algebra & Rational Tools

View all 270 tools →