Fraction Calculator

Add, subtract, multiply or divide two fractions and return an exact reduced fraction with a positive denominator.

Enter signed integers with at most 12 digits in each field. Denominators cannot be zero. Use separate numerator and denominator fields; decimals, mixed-number notation and thousands separators are not accepted.

Calculations stay in this browser. Inputs are not uploaded or saved.

Calculate with two exact fractions

Enter the numerator and denominator of each fraction, select an operation, and choose Calculate. The tool returns a reduced fraction along with its numerator and positive denominator. Inputs and intermediate results use integer arithmetic, so the result does not depend on decimal rounding.

Example: one third plus one sixth

Load the example to enter 1/3 and 1/6 with Add (+) selected. The raw sum is (1 × 6 + 1 × 3) / (3 × 6) = 9/18. Dividing by the common factor 9 produces 1/2. Choosing Subtract (−) with the same inputs produces 1/6. Multiplication gives 1/18, and division gives 2/1.

Signs, zero and input order

Signed numerators and denominators are accepted. A negative denominator is normalized by moving its sign to the numerator. A zero result is written as 0/1, while an integer result keeps denominator 1. The second fraction is subtracted from or divided into the first; reversing inputs can change the result.

A denominator of zero is rejected in either fraction. Division by a fraction with a zero numerator is also rejected, even if that fraction's denominator is nonzero. A zero numerator remains valid for addition, subtraction and multiplication.

Limits and next steps

Each field accepts an integer with at most 12 digits plus an optional sign. Enter no commas, decimals, exponents or mixed-number notation. For a mixed number, convert it into an improper fraction before entering it. Results can contain more digits than the inputs and are kept as exact strings in the output.

Editing a field or operation clears the old result. Copy results copies the labeled fraction values without uploading them. Use Ratio Calculator to simplify two nonnegative quantities, or Least Common Multiple Calculator when comparing common denominators across a longer list.