Adding and Subtracting Fractions Calculator

Enter two fractions or mixed numbers and this calculator adds or subtracts them exactly — no rounding, no decimal drift. It finds the least common denominator, rewrites both fractions over it, combines the numerators, and divides out the greatest common factor so the answer comes back in lowest terms as both an improper fraction and a mixed number. Every intermediate value is shown, so you can copy the working onto paper or check a student's homework line by line.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
First number: whole partLeave at 0 for a plain fraction; enter 3 for the mixed number 3 1/2.0
First numeratorThe top number of the first fraction.2
First denominatorThe bottom number of the first fraction; it must be 1 or more.3
OperationChoose whether the second fraction is added to or taken from the first.Add (+)
Second number: whole partLeave at 0 for a plain fraction; enter 1 for the mixed number 1 5/6.0
Second numeratorThe top number of the second fraction.1
Second denominatorThe bottom number of the second fraction; it must be 1 or more.4

It returns

  • Answer in lowest terms — The exact result with the greatest common factor divided out.
  • As a mixed number — The same value written as a whole part plus a proper fraction.
  • Least common denominator
  • Decimal value

The formula

ab±cd=aLb±cLdL
L=lcm(b,d)=bdgcd(b,d)

In plain text: a/b ± c/d = (a·(L/b) ± c·(L/d)) / L, where L = lcm(b, d) = b·d / gcd(b, d)

  • a, cNumerators of the two fractions (integer)
  • b, dDenominators of the two fractions, both greater than zero (integer)
  • LLeast common denominator, lcm(b, d) (integer)
  • gcdGreatest common divisor, found by the Euclidean algorithm (integer)

A mixed number w n/d is converted first: it equals (|w|·d + |n|)/d carrying the sign of w. The final numerator and denominator are then divided by their greatest common divisor.

Updated Category Fractions, Decimals & Rounding Verified against published test cases Reading time 12 min

Why fractions must share a denominator before you can add them

A fraction is a count of equal parts, and the denominator names the size of the part. Two thirds means two pieces each of size one third; one quarter means one piece of size one quarter. You cannot add two of one size to one of another size and get a meaningful count, for the same reason you cannot add two feet to one metre and write “three”. First you convert to a shared unit.

For fractions the shared unit is a common denominator: a part size that both original part sizes divide into evenly. Thirds and quarters both divide twelfths, so both fractions can be rewritten in twelfths — 2/3 becomes 8/12, and 1/4 becomes 3/12. Now the parts are the same size and you simply count them: eight plus three is eleven twelfths.

Any common denominator works. The product of the two denominators is always one, which is why the schoolbook shortcut a/b + c/d = (ad + cb)/(bd) is valid. The least common denominator is the smallest that works, and it is worth finding because it keeps the numbers small and usually leaves less reducing to do at the end. If you want it on its own, the least common multiple calculator computes it directly from any set of denominators.

Subtraction is the same operation with one sign changed. Once both fractions sit over the same denominator, you subtract the numerators and leave the denominator untouched. The denominator never changes during addition or subtraction — a mistake worth watching for, because it does change during multiplication.

The formula, term by term

The general rule has three moving parts: find the least common denominator, scale each numerator by the same factor its own denominator was scaled by, then reduce.

Finding L. The least common denominator is the least common multiple of the two denominators, and the fastest way to it is L = b·d / gcd(b, d). The greatest common divisor comes from the Euclidean algorithm: replace the larger number by its remainder on division by the smaller, repeat until one of them is zero, and the survivor is the gcd. For 4 and 6: 6 mod 4 = 2, then 4 mod 2 = 0, so gcd = 2 and L = 4·6/2 = 12.

Scaling the numerators. Multiplying a fraction's numerator and denominator by the same non-zero number leaves its value unchanged — that is the definition of equivalent fractions. So if b must grow to L, it grows by the factor L/b, and a must grow by exactly that same factor. Getting this factor right for one fraction and wrong for the other is the single most common source of wrong answers.

Reducing. The combined numerator and L often share a factor. Dividing both by gcd(numerator, L) puts the answer in lowest terms in one step, rather than in several passes of “can I halve it again?”. The simplifying fractions calculator does this step on any fraction you already have.

Mixed numbers first. A mixed number such as 3 1/2 is a sum in disguise: 3 + 1/2. Convert it to a single improper fraction, (3·2 + 1)/2 = 7/2, before doing anything else. Working the whole parts and fraction parts separately is possible but it goes wrong on subtraction the moment you have to borrow, so convert first every time.

Worked example: 2/3 + 1/4, then 3 1/2 − 1 5/6

First problem: 2/3 + 1/4.

  1. Both are already proper fractions, so there is nothing to convert. a = 2, b = 3, c = 1, d = 4.
  2. Find the gcd of the denominators. 4 mod 3 = 1; 3 mod 1 = 0. So gcd(3, 4) = 1.
  3. Find the LCD. L = 3 × 4 / 1 = 12.
  4. Scale the first fraction. 12 ÷ 3 = 4, so 2/3 = (2×4)/12 = 8/12.
  5. Scale the second. 12 ÷ 4 = 3, so 1/4 = (1×3)/12 = 3/12.
  6. Add the numerators. 8 + 3 = 11, over 12.
  7. Reduce. gcd(11, 12) = 1, so 11/12 is already in lowest terms. As a decimal, 11 ÷ 12 = 0.916666…

Second problem: 3 1/2 − 1 5/6. This one needs borrowing if you work it the long way, which is exactly why converting first pays.

  1. Convert both mixed numbers. 3 1/2 = (3×2 + 1)/2 = 7/2. And 1 5/6 = (1×6 + 5)/6 = 11/6.
  2. Find the gcd. 6 mod 2 = 0, so gcd(2, 6) = 2.
  3. Find the LCD. L = 2 × 6 / 2 = 6. Note that this is smaller than the product 12 — the shortcut formula would have worked but left you reducing twice as much.
  4. Scale. 6 ÷ 2 = 3, so 7/2 = 21/6. The second fraction already has denominator 6, so it stays 11/6.
  5. Subtract the numerators. 21 − 11 = 10, over 6.
  6. Reduce. gcd(10, 6) = 2, so 10/6 = 5/3.
  7. Write as a mixed number. 5 ÷ 3 = 1 remainder 2, so the answer is 1 2/3, or 1.66666… as a decimal.

Check it roughly: 3.5 − 1.833 ≈ 1.667. The exact answer and the decimal estimate agree, which is the sanity check to run every time.

How to read the answer: lowest terms, mixed form and sign

An answer is in lowest terms when the numerator and denominator share no common factor above 1. Teachers, standardised tests and engineering drawings all expect this form, and an unreduced answer is usually marked wrong even though it is numerically equal. If the calculator reports a greatest common factor above 1 in its steps, that is the number your own working needed to divide out.

Whether to leave the result improper or convert it to a mixed number depends on what you are doing. Algebra keeps improper fractions, because 5/3 slots into further algebra cleanly and 1 2/3 does not — juxtaposition means multiplication in algebra, so “1 2/3” is ambiguous there. Measurement and cooking prefer mixed numbers, because 1 2/3 cups is something you can act on. Both forms are shown; pick the one your context wants.

Sign needs care with mixed numbers. Written mathematics treats −2 3/4 as −(2 + 3/4) = −11/4, with the minus sign applying to the whole quantity, not just the whole part. This calculator follows that convention: when you enter a whole part, the sign comes from the whole part and the numerator is read as a magnitude. Set the whole part to 0 if you want the numerator to carry its own sign.

The decimal value is there as a check, not as the answer. Many fractions have no exact decimal — 1/3 and 5/6 both repeat forever — so the decimal shown is rounded and the fraction is the exact result. If you need to know whether a particular fraction terminates or repeats, the fraction to decimal calculator reports the period.

Least common denominators for the denominators you meet most

Read the LCD for a pair of denominators at the intersection of its row and column. Each entry is lcm(row, column) = row × column ÷ gcd(row, column).
 2345681012
226410681012
36312156243012
44124201282012
5101520530401060
66612306243012
88248402484024
101030201030401060
121212126012246012

Notice how often the LCD is smaller than the product: lcm(4, 6) = 12, not 24, and lcm(8, 12) = 24, not 96. That gap is the reducing work you save.

Mistakes that produce a wrong fraction sum

  • Adding the denominators. 1/2 + 1/3 is not 2/5. Check it against decimals: 0.5 + 0.333 = 0.833, but 2/5 = 0.4. The denominator is a unit label, and you do not add labels.
  • Scaling the numerator by the wrong factor. If the denominator was multiplied by 4 to reach the LCD, the numerator must be multiplied by 4 as well — not by the LCD, and not by the other denominator.
  • Scaling only one of the two fractions. Both have to reach the same denominator before a single numerator is combined.
  • Working mixed numbers piecewise on a subtraction. 3 1/2 − 1 5/6 cannot be done as (3−1) and (1/2−5/6) without borrowing, because 1/2 is smaller than 5/6. Converting to 7/2 and 11/6 first removes the trap entirely.
  • Leaving the answer unreduced. 10/6 is the right value but the wrong form. Divide by gcd(10, 6) = 2 to get 5/3.
  • Dropping the sign on a negative mixed number. −2 3/4 is −11/4, not −2 + 3/4 = −1.25.
  • Rounding to decimals mid-problem. Turning 1/3 into 0.33 and adding introduces an error that grows with every further step. Keep fractions exact until the last line.

The cross-multiplication shortcut, and when it hurts

a/b ± c/d = (a·d ± c·b)/(b·d) always gives a correct value, and it needs no gcd. It is the right tool for a quick mental check or for algebra with symbolic denominators.

It costs you at the reducing stage. For 5/12 + 7/18 the product denominator is 216, giving 90/216 + 84/216 = 174/216, which then needs dividing by 6. The least common denominator is 36, giving 15/36 + 14/36 = 29/36 directly. Same answer; a lot less arithmetic and far fewer chances to slip.

Addition and subtraction are the operations that need a common denominator. Multiplication and division do not: to multiply you combine numerators and denominators straight across, and to divide you invert the second fraction and multiply. Students who have just learned to find LCDs often apply them to every operation out of habit, which wastes work and, on division, gives a wrong answer. The dividing fractions calculator shows the reciprocal rule step by step.

For more than two terms, the method extends without change: take the least common multiple of all the denominators at once, rewrite every term over it, then combine. Doing it pairwise gives the same answer but can inflate the intermediate numbers.

Fractions and decimals are two notations for the same numbers, and neither is universally better. Fractions are exact for any ratio of integers, which is why they survive in music, in imperial measurement, in odds, and in symbolic algebra. Decimals compare and sort at a glance and feed directly into instruments and spreadsheets. Convert when the destination demands it, using the decimal to fraction calculator in the other direction, and remember that a repeating decimal always came from a fraction whose reduced denominator has a prime factor other than 2 or 5.

If you are adding measurements rather than abstract numbers — sixteenths on a tape measure, thirds of a cup — convert everything to the finest denominator present before you start. That denominator is usually the LCD already, and it keeps every intermediate number a whole count of the smallest unit you can actually measure.

Key terms

Numerator and denominator
The top and bottom of a fraction. The denominator names how many equal parts one whole is cut into; the numerator counts how many of those parts you have.
Common denominator
Any number that both original denominators divide into evenly. Every pair of fractions has infinitely many; their product is always one of them.
Least common denominator (LCD)
The smallest common denominator, equal to the least common multiple of the denominators. It keeps the arithmetic small and minimises later reducing.
Equivalent fractions
Fractions with the same value but different terms, such as 2/3 and 8/12. You produce one by multiplying numerator and denominator by the same non-zero number.
Lowest terms
A fraction whose numerator and denominator have a greatest common divisor of 1. Also called simplest form or fully reduced.
Improper fraction
A fraction whose numerator is at least as large as its denominator, such as 5/3. Not an error — just a form. Its mixed-number counterpart is 1 2/3.

Frequently asked questions

Can I add fractions without finding the least common denominator?

Yes. Any common denominator gives the right value, and the product of the two denominators is always a common denominator, so a/b + c/d = (ad + cb)/(bd) never fails. The catch is the size of the numbers and the amount of reducing left at the end. For 5/12 + 7/18 the product route gives 174/216, which still needs dividing by 6; the least common denominator route gives 29/36 straight away.

How do I add a fraction and a whole number?

Write the whole number over a denominator of 1, then proceed normally. For 3 + 2/5, treat 3 as 3/1; the least common denominator of 1 and 5 is 5, so 3/1 becomes 15/5, and 15/5 + 2/5 = 17/5, or 3 2/5. In this calculator you can do it faster by entering the whole number in the whole-part field and leaving the numerator at 0.

What does the calculator do with a negative mixed number?

It reads the sign from the whole part and applies it to the entire quantity, which is the standard mathematical convention. Entering −2 as the whole part with 3 and 4 as numerator and denominator gives −11/4, or −2.75 — not −2 + 0.75. If you want the numerator to carry its own sign, set the whole part to 0 and put the minus on the numerator instead.

Why is my answer different from my textbook's?

Check the form before you check the value. Textbooks usually require lowest terms and often require mixed-number form, so 10/6, 5/3 and 1 2/3 are the same number in three presentations and only one may be accepted. Convert your answer to a decimal and compare: if the decimals match, you have a formatting difference, not an arithmetic error. If they do not match, the usual culprit is a numerator scaled by the wrong factor.

What is a normal denominator to end up with?

Whatever the least common denominator was, divided by any factor the reduction removed — so the answer's denominator always divides the LCD, and it is never larger than it. If your answer has a denominator bigger than the LCD you used, something went wrong. If the two starting denominators share no factor above 1, the LCD is their product, and answers over that denominator are common and correct.

How many fractions can I add at once?

This calculator handles two terms at a time, which covers most homework and most measurement problems. For a longer chain, add the first two, then feed the answer back into the first slot and enter the third fraction — the result is identical to taking the least common multiple of all denominators at once, because addition is associative.

Does the order matter when subtracting?

Yes. Subtraction is not commutative: 3/4 − 5/6 = −1/12, while 5/6 − 3/4 = +1/12. The two answers have the same magnitude and opposite signs. Enter the quantity you are starting from as the first fraction and the quantity being removed as the second.

Why does the decimal shown not end?

Because most fractions have no finite decimal form. A reduced fraction terminates as a decimal only when its denominator's prime factors are just 2s and 5s — so 3/8 and 7/20 terminate, while 11/12 and 5/6 repeat forever. The decimal on this page is rounded for display; the fraction is the exact answer, which is exactly why the fraction is the form worth keeping.

References

  • Common Core State Standards for Mathematics, Number and Operations — Fractions (grades 4–5)National Governors Association Center for Best Practices & Council of Chief State School Officers
  • The Art of Computer Programming, Volume 2: Seminumerical Algorithms, 3rd ed. (rational arithmetic and the Euclidean algorithm) — Addison-Wesley (Donald E. Knuth)
  • Concrete Mathematics: A Foundation for Computer Science, 2nd ed. (integer functions, gcd and lcm) — Addison-Wesley (Graham, Knuth & Patashnik)