Math / Fraction

Fraction calculator

Add, subtract, multiply, or divide two fractions and get an exact answer in simplest form.

Your answer will appear here.

Formula: Keep each value as an exact numerator over denominator; cross-multiply for addition and subtraction, then reduce by the greatest common divisor.

The basics

Exact fraction arithmetic, reduced automatically

Fractions stay exact when kept as a numerator over a denominator. Addition and subtraction use a common denominator (or cross-multiplication), multiplication combines numerators and denominators, and division flips the second fraction. Every answer is reduced by the greatest common divisor.

The same divisor that reduces a fraction also simplifies a ratio; the Ratio Simplifier applies it to multi-term comparisons, and the GCD & LCM calculator finds the divisor directly.

How the formula works

a/b ± c/d = (ad ± bc) / bd, then reduce by GCD

Cross-multiply to combine, then divide numerator and denominator by their greatest common divisor to reach simplest form.

Zero denominator

A denominator of zero is undefined and is rejected.

Mixed numbers

Enter improper fractions such as 7/4 directly.

In practice

Worked examples

Input

1/2 + 1/3

Answer

5/6

Input

-3/4 ÷ 1/2

Answer

-3/2

Good to know

Frequently asked questions

Use an integer, decimal, or fraction such as -3, 0.75, or 5/8. Fraction numerators and denominators must be whole numbers.

Keep going