Skip to calculator
Libre CalculatorThe universe in numbers

Fraction calculator

Add, subtract, multiply, divide, or reduce fractions using exact rational arithmetic.

Calculation

Answer

5/6

Steps

1/2 + 1/3 = 5/6

The calculation as exact fractions
1/2 + 1/3 = 5/6. The result is 5/6.

Watch the explainer

214 seconds · 9 chapters · captions included

0:00 / 3:34Where did the milk go?

Explanation

Fractions as exact numbers

A fraction a/b represents a divided by b, with b nonzero. Equivalent fractions name the same rational value, so reducing common factors changes its form but not its value. This calculator keeps results exact as integer numerator and denominator; it does not convert them to rounded decimals.

a/b + c/d = (ad + bc)/bd; a/b − c/d = (ad − bc)/bd; (a/b)(c/d) = ac/bd; (a/b) ÷ (c/d) = ad/bc

Variables
asigned integer numerator (integer)
bnonzero integer denominator (integer)
csecond signed integer numerator (integer)
dsecond nonzero integer denominator (integer)
x/yexact value represented by the fraction (exact rational number)

1/2 + 1/3 = 5/6

First numerator1
First denominator2
Second numerator1
Second denominator3
Result5/6

1/2 + 1/3 = 5/6

1/2 − 3/4 = −1/4

First numerator1
First denominator2
Second numerator3
Second denominator4
Result-1/4

1/2 − 3/4 = -1/4

2/3 × 9/4 = 3/2, or 1 1/2

First numerator2
First denominator3
Second numerator9
Second denominator4
Result3/2

2/3 × 9/4 = 3/2

2/3 ÷ 4/5 = 5/6

First numerator2
First denominator3
Second numerator4
Second denominator5
Result5/6

2/3 ÷ 4/5 = 5/6

Reduce −42/−56 to 3/4

Numerator-42
Denominator-56
Result3/4

Reduce -42/-56 by the greatest common divisor 14 to get 3/4.

Diagram of this result

The calculation is shown as an equation of exact fractions. When the answer is a small positive fraction, a grid shades its parts, one row per whole.

Each term of the equation is written as an exact fraction. In the grid, each row is one whole split into equal parts, and the shaded cells count the numerator.

Improper fractions and mixed numbers

For a signed improper fraction, divide the numerator's magnitude by the positive denominator. The quotient is the whole part and the remainder forms a proper fraction. Put the sign before the whole mixed value: −7/3 is −2 1/3, not −1 2/3. The exact signed n/d remains the primary result; the mixed form is an equivalent display.

Common fraction mistakes

Addition and subtraction need a common denominator; add or subtract the corresponding numerators only after scaling. Multiplication multiplies numerators and denominators. Division multiplies by the reciprocal of a nonzero divisor. Never add denominators directly, and do not move a negative sign into only part of a mixed number. A negative numerator over a negative denominator is positive, so −42/−56 reduces to 3/4. The engine normalizes signs and reduces all answers automatically.

Exactness and input limits

Enter signed whole integers only. Each input magnitude is limited to 1000 digits; exact normalized output numerator and denominator are limited to 2001 digits. Denominators must be nonzero, and division also rejects a zero fraction. The shaded-parts grid appears only for positive answers with a small denominator; other answers are shown as exact fractions alone. No decimal approximation is used.

Why must a denominator be nonzero?

A fraction means numerator divided by denominator. Division by zero is undefined, so a zero denominator has no rational value and is rejected.

How is a negative mixed number written?

The sign applies to the complete mixed value. For example, −7/3 is −2 1/3: the magnitude is two and one third, and the whole result is negative.

What does a zero fraction reduce to?

Any valid zero fraction reduces to 0/1. Its denominator is still required to be nonzero on input.

Fraction references

For standard fraction operations, see OpenStax Prealgebra 2e, “Multiply and Divide Fractions”: https://openstax.org/books/prealgebra-2e/pages/4-2-multiply-and-divide-fractions and “Add and Subtract Fractions”: https://openstax.org/books/prealgebra-2e/pages/4-3-add-and-subtract-fractions. The exact integer bounds and mixed-number sign convention used here are stated in this lesson.

Related calculators

Percentage calculator