Home / All calculators / Fraction Calculator

Free maths calculator

Fraction Calculator

Use this fraction calculator to add, subtract, multiply or divide two fractions. The result is reduced to its simplest form, with an optional mixed-number representation.

Calculate with two fractions

Simplified fraction—
Mixed number / decimal—

Enter integer numerators and non-zero integer denominators.

How fraction calculations work

A fraction represents a numerator divided by a non-zero denominator. For addition and subtraction, both fractions are converted to a common denominator. For multiplication, multiply the numerators and denominators. For division, multiply the first fraction by the reciprocal of the second fraction.

Add / subtract: a/b ± c/d = (ad ± bc) / bd
Multiply: a/b × c/d = ac / bd
Divide: a/b ÷ c/d = ad / bc, where c is not zero.

The final numerator and denominator are divided by their greatest common divisor (GCD). The denominator is displayed as positive.

Worked example: 3/4 + 2/5

The common denominator of 4 and 5 is 20. Convert 3/4 to 15/20 and 2/5 to 8/20. Add the numerators: 15/20 + 8/20 = 23/20. This is already in simplest form and can also be written as 1 3/20 or 1.15.

What is a simplified fraction?

A fraction is in simplest form when its numerator and denominator have no common positive factor other than 1. For example, 6/8 reduces to 3/4 by dividing both values by 2.

Frequently asked questions

Can the calculator handle negative fractions?

Yes. Enter a negative numerator to represent a negative fraction. The result is normalised with a positive denominator.

Why can the denominator not be zero?

Division by zero is undefined, so a fraction with a zero denominator is not valid.

How do I convert a decimal to a fraction?

Write the decimal digits over a power of ten, then reduce by the greatest common divisor. For example, 0.625 = 625/1000 = 5/8. This calculator focuses on operations between two fractions.

What happens when I divide by zero?

The calculator displays a validation message because division by zero has no defined result.

Related maths tools

Basic Calculator · Date Difference Calculator · Browse all calculators

This tool uses exact integer arithmetic for the fraction operation and displays a rounded decimal to six places. Very large inputs may exceed JavaScript's safe integer range.

Related calculators

Continue with a related tool, compare a different calculation or browse the full calculator directory.

Browse all calculators

Fraction operations explained

A fraction represents a numerator divided by a denominator. The denominator cannot be zero. This calculator accepts whole-number inputs, performs the selected operation, reduces the answer to its simplest form and displays a mixed number when useful.

Addition and subtraction

To add or subtract fractions with different denominators, first use a common denominator. For a/b + c/d, the result is (a × d + c × b) ÷ (b × d). For subtraction, replace the plus sign in the numerator with a minus sign. For example, 3/4 + 2/5 = 15/20 + 8/20 = 23/20.

Multiplication and division

Multiply numerators together and denominators together: (a/b) × (c/d) = (a × c)/(b × d). To divide by a fraction, multiply by its reciprocal: (a/b) ÷ (c/d) = (a × d)/(b × c). Division is undefined when the second fraction is zero.

Simplifying the answer

The calculator finds the greatest common divisor (GCD) of the numerator and denominator and divides both by it. The fraction 23/20 is already reduced and can also be written as 1 3/20. A negative sign is kept with the numerator, while the displayed denominator is positive.

Input limits and accuracy

Inputs must be safe whole numbers and denominators must be non-zero. The calculator uses JavaScript safe-integer arithmetic; if an intermediate numerator or denominator exceeds that range, it asks you to use smaller values rather than presenting an unreliable answer. The decimal display is rounded to six places, while the fraction remains the exact result within the supported integer range.