Maths

Fraction Calculator

Add, subtract, multiply and divide fractions and mixed numbers with exact steps.

By Nitin Raturi · Last reviewed

Your numbers

How to use the Fraction Calculator

Enter two numbers, pick an operation, and read the exact result and its working.

  1. Enter each value as a whole number, fraction, or mixed number.
  2. Choose add, subtract, multiply, or divide.
  3. Read the simplified fraction, mixed number and decimal.
  4. Review the working to see the common denominator, multiplication or reciprocal, and GCD reduction.
  5. Copy the page address to share the same valid inputs.

Good to know

  • A leading minus sign applies to the entire number.
  • Repeating decimal digits appear inside parentheses.
  • Your values stay in this browser.

Use whole numbers, proper or improper fractions, and mixed numbers. Calculation is exact, not rounded.

First number

Enter a whole number, fraction, or mixed number. A leading minus sign makes the entire value negative.

How to fill it in

  • Examples: 4, 3/4, 7/3, 2 1/3, or −2 1/3.
  • Use digits and a slash; spaces around the slash are optional.
  • Each number can contain up to 30 digits.

Example

The default first number is 1/2; with 1/3, the result is 5/6.

Tip: For a negative mixed number, write the sign before the whole part, such as −1 1/2.

Use 3/4, 7/3, 2 1/3, or a negative value such as −1 1/2.

Operation

Choose how to combine the two numbers.

How to fill it in

  • Add and subtract use a common denominator.
  • Multiply uses numerator × numerator and denominator × denominator.
  • Divide multiplies by the reciprocal of the second number.

Example

For example, 7/4 is the product of 2 1/3 and 3/4.

Keep in mind: Division by zero is undefined. The calculator reports an error instead of a result.

Second number

Enter the fraction, whole number, or mixed number to use with the first number.

How to fill it in

  • The same forms as the first number are accepted.
  • A denominator must be greater than zero.
  • For division, the second number must not equal zero.

Example

The default second number is 1/3, so 1/2 + 1/3 = 5/6.

Use 3/4, 7/3, 2 1/3, or a negative value such as −1 1/2.

Result

5/6

Mixed number
5/6
Decimal
0.8(3)

Step-by-step working

  1. LCD = lcm(2, 3) = 6.
  2. Rewrite: 3/6 + 2/6.
  3. Cross-multiply to the LCD: 1 × 3 = 3; 1 × 2 = 2.
  4. Combine numerators: 3 + 2 = 5.
  5. Simplify by the GCD 1: 5/6 → 5/6.

The calculation runs in your browser. Your inputs are not sent or stored.

How this calculator works

Fractions stay exact through the operation; the result is reduced only after the arithmetic is complete.

  1. Step 1Read both values2 1/3 and 3/4A mixed number becomes one signed numerator over a positive denominator.
  2. Step 2Apply the operation7/3 × 3/4Multiply the numerators and denominators, or use a common denominator for addition and subtraction.
  3. Step 3Reduce and show7/4 = 1 3/4The GCD reduces the fraction; long division supplies an exact or clearly shortened decimal.

For addition and subtraction, the calculator finds the least common denominator (LCD), rewrites each numerator to that denominator, then combines the numerators. Multiplication is across; division multiplies by the reciprocal.

What the result leaves out

  • No decimal inputEnter rational values as integers, fractions or mixed numbers so the calculation remains exact.
  • Two numbers at a timeUse the result as an input to continue a longer calculation.

Worked example

For 1/2 + 1/3, LCD = lcm(2, 3) = 6. The numerators can then be added.

1/2 + 1/3
Addition with an LCD
a/b + c/d = (a × LCD/b + c × LCD/d) / LCD
  1. Step 1Exact fraction calculationLCD = lcm(2, 3) = 6.
  2. Step 2Exact fraction calculationRewrite: 3/6 + 2/6.
  3. Step 3Exact fraction calculationCross-multiply to the LCD: 1 × 3 = 3; 1 × 2 = 2.
  4. Step 4Exact fraction calculationCombine numerators: 3 + 2 = 5.
  5. Step 5Exact fraction calculationSimplify by the GCD 1: 5/6 → 5/6.

The decimal is 0.8(3). Parentheses show the digits that repeat, rather than suggesting that the decimal ends.

Reading your result

  • Fraction5/6The exact ratio, reduced to lowest terms.
  • Mixed number5/6A whole part and a fraction when the result is improper.
  • Decimal0.8(3)A base-ten view; repeating digits appear in parentheses.

An ellipsis means the decimal expansion continues beyond the display limit. Use the fraction for an exact value, especially when continuing another calculation.

Fractions, ratios, decimals and percentages are different ways of writing the same parts of a whole.

Adding fractions needs a common denominator, which is the lowest common multiple; the LCM and HCF calculator shows how to find it. To simplify or scale a ratio, use the ratio calculator.

To turn a fraction into a decimal by hand, the long division calculator shows each step and any recurring digits. For percent questions, try the percentage calculator.

Common mistakes

  • Mistake: Adding the top and bottom numbers separately.

    Instead: Convert to a common denominator, then add or subtract only the numerators.

  • Mistake: Treating −1 1/2 as −1 + 1/2.

    Instead: The sign applies to the whole mixed number: −(1 + 1/2).

  • Mistake: Dividing top by top and bottom by bottom.

    Instead: Keep the first fraction, invert the second and multiply.

Frequently asked questions

Can I enter an improper fraction?

Yes. Enter a value such as 7/3. The result includes a mixed-number form when it has a whole part.

How do I enter a negative mixed number?

Put the minus sign before the whole part, for example −2 1/3. The sign applies to the complete value.

Why is the decimal written with parentheses?

A block such as (3) marks digits that repeat indefinitely. A long period may be shortened with an ellipsis; the fraction remains exact.

What happens if I divide by zero?

The calculator shows an error and does not display a numeric result. A denominator of zero in either input is also rejected.

How large can my inputs be?

Each whole, numerator and denominator component can contain at most 30 digits. This limit applies to typed components, not to exact intermediate products.

Are my inputs sent to a server?

No. The calculation runs in your browser and the values are not sent to us.

Sources and method

This page follows the standard fraction notation, reduction and arithmetic rules described by Wolfram MathWorld’s fraction reference and its greatest common divisor reference. Its examples are generated from the calculator logic and checked with independent cross-product arithmetic.

Read how we test our calculators, or browse more maths calculators.

Frequently asked questions

Can I enter an improper fraction?

Yes. Enter a value such as 7/3. Results show a mixed-number form when there is a whole part.

How do I enter a negative mixed number?

Put the minus sign before the whole part, for example −2 1/3. The sign applies to the complete value.

Why does the decimal use parentheses?

Parentheses mark digits that repeat, such as 0.(3). A long expansion may end with an ellipsis; the fraction remains exact.

What happens if I divide by zero?

The calculator reports an error instead of a numeric result. An input denominator of zero is also rejected.

How large can the inputs be?

Each whole, numerator and denominator component can have up to 30 digits. Intermediate arithmetic remains exact.

Are my inputs sent to a server?

No. Calculation runs in your browser; inputs are not sent or stored.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 22 Oct 2026; next review due by . Found an error? Tell us.

Changelog

  • : First release. The example 1/2 + 1/3 = 5/6 is checked by exact arithmetic.