Starlight Tools

Fraction Calculator

Enter two fractions or mixed numbers, choose +, −, × or ÷, then select Calculate. Get a simplified exact answer, mixed-number and decimal forms, and visible working for every step.

Calculate fractions

Add, subtract, multiply or divide two fractions. Whole parts are optional.

First value
Operation
Second value

For −2 1/3, enter −2 in Whole, 1 in Numerator and 3 in Denominator. For −1/3, leave Whole blank and enter −1 in Numerator. Use your keyboard’s minus sign; a full keyboard is available for signed values.

Enter fractions as text instead

Accepted: −3/4 (type -3/4), 2 1/3, 5, 0.125 or 0.(3). A mixed number has one leading sign.

Up to 100 digits per integer field. Fraction calculations remain exact, even when products exceed JavaScript’s safe integer range.

Display settings

Rounding affects only the decimal and percent displays. Exact fractions never change.

Calculations run locally in your browser. Input values are not uploaded.

Answer

Your equation and worked steps will appear here.

How to calculate with fractions

Add like or unlike denominators

For like denominators, add only the numerators. For unlike denominators, use their LCD and multiply each fraction’s top and bottom by the same factor before adding.

ab+cd=ad+bcbd

Subtract mixed numbers

Convert the whole part and fraction to one improper fraction first: 2 1/3 = (2 × 3 + 1)/3 = 7/3. Find a common denominator, subtract and reduce.

Cross-cancel before multiplying

In a product, divide a numerator and a denominator by a shared factor before multiplying. This keeps numbers smaller without changing the value. Never cancel terms across + or −.

Divide with a reciprocal

Invert the second fraction, then multiply. The reciprocal of 2/3 is 3/2 because their product is 1. Zero has no reciprocal.

Simplify with GCF / GCD

Divide both parts by their greatest common factor, also called greatest common divisor. For 12/16, GCD(12, 16) = 4, giving 3/4.

Handle negative values

Keep the denominator positive and carry the sign on the numerator. A leading minus on a mixed number applies to its whole value: −2 1/3 = −7/3.

Recognize terminating and repeating decimals

Reduce first. Denominators containing only factors 2 and 5 terminate, such as 1/8 = 0.125. Other denominators repeat, such as 1/6 = 0.1(6). A rounded decimal is marked ≈.

Worked examples — try the exact problem

1. Like denominators

  1. 15+25=35

    Keep the common denominator 5 and add 1 + 2. GCD(3, 5) = 1, so the result is already reduced.

2. Unlike denominators and an improper answer

  1. 23+34=812+912

    LCD(3, 4) = 12. Multiply both parts of 2/3 by 4 and both parts of 3/4 by 3.

  2. 812+912=1712=1512

    Add the numerators. GCD(17, 12) = 1; division gives 1 whole and remainder 5.

3. Negative values

  1. -12+13=-36+26

    Use the LCD 6 and keep the signs on the numerators.

  2. -36+26=-16

    Add −3 + 2 = −1. The result is already reduced.

4. Subtract mixed numbers

  1. 213=73

    Multiply 2 × 3 and add 1 to convert to an improper fraction.

  2. 73-56=146-56=96

    Use LCD 6 and subtract the numerators.

  3. 96=32=112

    Divide both parts by GCD 3, then divide 3 by 2 for the mixed form.

5. Cross-cancel a product

  1. 34×89=11×23

    Cancel 3 with 9 by dividing both by 3; cancel 8 with 4 by dividing both by 4.

  2. 11×23=23

    Multiply the remaining numerators and denominators. GCD(2, 3) = 1.

6. Divide using a reciprocal

  1. 56÷23=56×32

    Invert the nonzero second fraction and change division to multiplication.

  2. 56×32=1512=54=114

    Multiply, reduce by GCD 3, then write the improper answer as a mixed number.

7. Zero numerator

  1. 07×34=028=0

    The numerator product is 0. Divide both parts by GCD(0, 28) = 28 to get 0/1, or 0.

8. An explicitly repeating decimal

  1. 10×x-x=3

    Let x = 0.(3). Multiplication by 10 shifts the same repeating tail one place; subtracting x cancels that tail.

  2. 9×x=3

    Combine the left side to get 9x = 3.

  3. x=39=13

    Divide by 9, then reduce by GCD 3. A finite input of 0.3333 would be a different fraction.

Methodology and verification

Published by Starlight Tools (Starlight Robotics). Last calculation and content review: . This date records the page’s implementation review and automated checks, not an independent credentialed mathematical review.

All numerators, denominators, products and cross-products use BigInt integers. Addition and subtraction use the LCD found by LCM(a, b) = |a ÷ GCD(a, b) × b|. Division uses the reciprocal of a nonzero fraction. Every answer is reduced by GCD and its denominator is made positive. Percent conversion multiplies or divides the exact fraction by 100.

Inputs support 100 digits per integer field or 100 total digits in a decimal, including its repeating block. Intermediate products are not limited to 100 digits. Decimal rounding uses integer quotient and remainder, with ties away from zero; trailing zeros are removed and approximations use ≈. Repeating blocks or complete terminating expansions are displayed when found within 200 digits. Otherwise the exact fraction remains available with a labeled rounded decimal.

Fraction models draw every whole plus the remainder for magnitudes up to 12 with denominators up to 24. Larger results use an exact text description instead of a partial drawing. Negative results include a labeled number line.

Published verification cases
  • 2/3 + 3/4 = 17/12 = 1 5/12; at 6 places, ≈ 1.416667.
  • −2 1/3 − 5/6 = −19/6 = −3 1/6.
  • 0.(3) = 1/3; 0.3333 = 3333/10000.
  • 12.5% = 1/8; 3/8 = 37.5%.
  • 9007199254740993/7 × 7/9007199254740993 = 1.
  • 100-digit numerator multiplication remains exact; 101-digit inputs are rejected.
  • 0/7 = 0; denominators of 0 and division by 0/7 are rejected.

Practical fraction FAQ

Why are denominators not added?

The denominator names the size of each part. Adding 1/5 and 2/5 combines three fifths, so the result is 3/5, not 3/10. For unlike denominators, first rewrite both fractions using equal-sized parts.

What is the difference between LCD and LCM?

LCM means least common multiple of integers. The LCD, or least common denominator, is the LCM of the denominators you are using. For denominators 6 and 8, both the LCM and LCD are 24.

Are GCF and GCD the same?

Yes. Greatest common factor (GCF) and greatest common divisor (GCD) name the same positive integer. Dividing the numerator and denominator by it reduces a fraction to lowest terms.

When can I cross-cancel?

Cross-cancel common factors between any numerator and denominator in a product of fractions. For division, first replace division with multiplication by the reciprocal. Do not cancel across addition or subtraction.

Where does a negative sign belong?

For a simple fraction, a minus sign can go before the fraction, on its numerator or on its denominator. Two minus signs cancel. For mixed-number input here, put the sign on Whole only and keep the fractional parts unsigned; −2 1/3 means −(2 + 1/3). Final denominators are always positive.

Why do some decimals repeat?

After a fraction is reduced, its decimal terminates only if its denominator has no prime factors except 2 and 5. Otherwise long division repeats a remainder and the digits recur. Enter 0.(3) for exactly 1/3; the finite decimal 0.3333 is exactly 3333/10000.

Is zero a valid numerator?

Yes. Zero divided by any nonzero denominator is zero, so 0/7 = 0. A zero denominator is undefined, and division by a fraction whose numerator is zero is also undefined.

How does mixed-number subtraction work?

Convert each mixed number to an improper fraction, rewrite with a common denominator, subtract the numerators and reduce. For example, 2 1/3 − 5/6 = 14/6 − 5/6 = 9/6 = 1 1/2. This avoids separate borrowing steps.

How are answers rounded?

Exact fractions are never rounded. Decimal and percent displays use the selected 0–20 decimal places, round halfway cases away from zero and remove trailing zeros. The ≈ sign marks a rounded value; = marks an exact value. Parentheses enclose a repeating block. Full decimal expansions are shown only when they finish or reveal their repeat within 200 digits.

How do I add fractions with unlike denominators?

Find the LCD, multiply each numerator and denominator by the same integer to reach it, then add the numerators and reduce. For example, 2/3 + 3/4 = 8/12 + 9/12 = 17/12.

How do I divide fractions?

Keep the first fraction and multiply it by the reciprocal of the second, then reduce. For example, 5/6 ÷ 2/3 = 5/6 × 3/2 = 15/12 = 5/4. The second fraction must not be zero.

How do percent conversions work?

To convert a fraction to a percent, multiply its value by 100 and add %. To convert a percent to a fraction, divide the entered number by 100 and reduce. For example, 3/8 = 37.5%, and 12.5% = 1/8.

Explore more tools