Command Palette

Search for a command to run...

Fraction Calculator: Add, Subtract, Multiply and Divide Fractions Without the Guesswork

Fraction Calculator: Add, Subtract, Multiply and Divide Fractions Without the Guesswork

T
Toolz Team
|Aug 23, 2026|15 min read

Part of the Calculators collection

I do most of my arithmetic in code, where a computer keeps the decimals honest. But the moment I stepped away from the keyboard - halving a recipe that called for 3/4 cup of flour, working out how many 2 1/2-inch cuts I could get from a 96-inch board, splitting a measurement three ways for a shelf - I was back to the fraction rules I half-remembered from school. Find a common denominator. Flip the second one when you divide. Reduce at the end. Each step is simple; getting all of them right in a row, in your head, is where the mistakes live.

So I built a fraction calculator into toolz.dev that does not just hand you an answer but shows the working, the same way I would want a code review to show me why a value is what it is. This guide explains how fraction arithmetic actually works, where people trip up, and how to read the output of the free Fraction Calculator so the number is never a black box.

TL;DR: To add or subtract fractions, put them over a common denominator, combine the numerators, then reduce. To multiply, multiply across the top and the bottom. To divide, flip the second fraction and multiply. Every answer should be reduced to lowest terms by dividing the top and bottom by their greatest common divisor. The Fraction Calculator does all four operations with whole numbers, mixed numbers, and decimals, shows each step, and runs entirely in your browser.

What is a fraction, really?

A fraction is a division waiting to happen. The bar between the two numbers is a division sign: 3/4 literally means three divided by four, which is why it equals 0.75. The number on top is the numerator - how many parts you have. The number on the bottom is the denominator - how many equal parts make a whole. Read 3/4 as "three of the four parts a whole was cut into," and most of the rules that follow stop feeling arbitrary.

That reading also explains why you cannot simply add 1/2 and 1/3 by adding the tops and bottoms to get 2/5. The halves and the thirds are different-sized pieces. Two-fifths is actually smaller than one half, so an answer of 2/5 for 1/2 + 1/3 is not just wrong, it is obviously wrong once you picture the pieces. You have to cut both fractions into pieces of the same size first, and that is what a common denominator does.

Fractions come in three shapes worth naming, because the calculator accepts all of them. A proper fraction has a numerator smaller than its denominator (3/4). An improper fraction has a numerator equal to or larger than its denominator (5/4), which is a perfectly valid number, just greater than one. And a mixed number writes that same improper value as a whole part plus a proper fraction (1 1/4). Five-quarters and one-and-a-quarter are the same amount written two ways.

How do you add and subtract fractions?

Addition and subtraction are the operations that need a common denominator, and they are where the Fraction Calculator shows the most working.

The recipe is always the same. Find a denominator both fractions can share, rewrite each fraction over it, then add or subtract the numerators and leave the denominator alone. Take 1/2 + 1/3. The smallest number both 2 and 3 divide into is 6 - their least common denominator. Rewrite 1/2 as 3/6 (multiply top and bottom by 3) and 1/3 as 2/6 (multiply top and bottom by 2). Now the pieces match: 3/6 + 2/6 = 5/6. Because 5 and 6 share no common factor, 5/6 is already the final answer.

You can always use the product of the two denominators as a common denominator - for 1/2 and 1/3 that would be 6 anyway, but for 1/4 and 1/6 the product is 24 while the least common denominator is only 12. Using the smaller one means less reducing at the end, which is why the calculator computes the least common denominator rather than the lazy product. Subtraction works identically; only the sign between the numerators changes. And if the two fractions already share a denominator, like 3/8 and 1/8, you skip straight to combining the numerators.

How do you multiply and divide fractions?

Here is the part people find surprising: multiplication and division are easier than addition, because they need no common denominator at all.

To multiply, multiply the numerators together and the denominators together. Two-thirds times three-fifths is (2 × 3) over (3 × 5), which is 6/15, and 6/15 reduces to 2/5. That is the whole procedure. A useful sanity check: multiplying two proper fractions always gives a smaller result, because you are taking a fraction of a fraction. Two-thirds of three-fifths has to be less than three-fifths.

To divide, flip the second fraction and multiply. Dividing by a number is the same as multiplying by its reciprocal - the fraction turned upside down. So 1/2 ÷ 3/4 becomes 1/2 × 4/3, which is 4/6, which reduces to 2/3. The phrase drilled into most of us is "keep, change, flip": keep the first fraction, change the division to multiplication, flip the second. The one rule you cannot break is that the fraction you flip must not be zero - you cannot divide by zero, and the calculator returns an error rather than a nonsense result if you try.

Mixed numbers do not change any of this; they just need converting to improper fractions first. To divide 1 1/2 by 2/3, rewrite 1 1/2 as 3/2, then 3/2 ÷ 2/3 = 3/2 × 3/2 = 9/4, which is 2 1/4 as a mixed number. The Fraction Calculator does that conversion for you and gives the answer back in both improper and mixed form.

Why must every answer be reduced to lowest terms?

An answer like 6/15 is correct, but it is not finished. Reducing - also called simplifying - divides the numerator and denominator by their greatest common divisor, the largest number that goes evenly into both. For 6 and 15 that is 3, so 6/15 becomes 2/5. Both fractions represent exactly the same value; 2/5 is just the plainest way to write it.

Reducing matters for the same reason clean code matters: the simplest correct form is the one everyone can read and compare at a glance. Is 6/15 bigger or smaller than 3/8? Hard to say instantly. Is 2/5 bigger than 3/8? Still needs a moment, but far less. A fraction is in lowest terms when the only whole number that divides both the top and the bottom is 1, and the calculator always reduces to that point using the greatest common divisor so you never have to hunt for shared factors yourself.

This is also why exact arithmetic beats decimals for fractions. Add 1/3 three times on a basic calculator that rounds and you may get 0.9999999 instead of 1. The Fraction Calculator keeps everything as whole-number numerators and denominators until the very end, so 1/3 + 1/3 + 1/3 is exactly 1, with no floating-point dust.

When should I convert between fractions and decimals?

Fractions and decimals are two notations for the same numbers, and each is better at a different job. Decimals win when you need to compare or sum many values quickly, or when a measuring tool is marked in tenths. Fractions win when the underlying quantity is naturally a ratio - a recipe portion, a wrench size, a musical time signature, a probability like 1/6 for a die.

Converting a fraction to a decimal is just the division the fraction stands for: 3/4 is 3 ÷ 4 = 0.75. Going the other way, a terminating decimal converts exactly by reading it as a fraction over a power of ten and reducing. 0.75 is 75/100, which reduces to 3/4. The calculator's decimal-to-fraction mode does exactly this. The catch is repeating decimals: 0.333… is 1/3, but the visible digits 0.333 are only 333/1000, a hair off. When you need the exact third, type the fraction 1/3 directly rather than a rounded decimal - the tool treats the digits you enter as exact and cannot guess that you meant a repeating pattern.

Where do fractions show up in real work?

It is easy to file fractions under "school maths," but they turn up constantly once you look. Here is a quick map of the operations against the everyday jobs they solve, all of which the calculator handles.

Task Operation Example
Halving or doubling a recipe multiply 3/4 cup × 1/2 = 3/8 cup
Combining two board measurements add 2 1/2 in + 1 3/4 in = 4 1/4 in
Working out remaining stock subtract 7/8 tank − 1/3 tank = 13/24 tank
Splitting a length evenly divide 5 1/4 ft ÷ 3 = 1 3/4 ft
Reading a probability as odds reduce 6/48 chance = 1/8
Scaling a design ratio multiply 16/9 × 3/4 = 4/3

That last row is a reminder that fractions and ratios are close cousins. If you are working out image or screen dimensions, the Aspect Ratio Calculator applies the same reduce-by-the-GCD idea to width and height. And when a job is really about "what portion of the whole," it is often cleaner to think in percentages - the Percentage Calculator is the tool for "3/4 is what percent of the total." For turning a final figure into words on an invoice or cheque, the Number to Words Converter picks up where the fraction math ends. I lean on the same client-side, no-signup approach across all of them, which I wrote about in the coding tools guide and the broader web developer toolkit.

How does the Fraction Calculator work under the hood?

The tool is deliberately boring in the best way. You enter two values, each of which can be a whole number, a simple fraction, a mixed number, or a decimal. It parses each into an exact numerator and denominator - a mixed number like 1 1/2 becomes 3/2, a decimal like 0.75 becomes 3/4 - then performs the chosen operation with plain integer arithmetic. It normalizes the sign so the denominator is always positive, reduces the result by the greatest common divisor, and reports the answer four ways: the reduced fraction, the mixed number, the decimal value, and a numbered list of the steps it took.

Because it is all integer math running in JavaScript in your browser, there is no rounding drift and no server round trip. Nothing you type is uploaded, and the tool keeps working with no connection once the page has loaded - the same privacy-first stance behind every utility on the site. It is built for the moments arithmetic leaves the screen: the kitchen, the workshop, the homework check at the kitchen table.

What are the most common fraction mistakes?

Most fraction errors are not failures of arithmetic but of one forgotten rule, and they cluster in predictable places. The first is adding across the top and the bottom - writing 1/2 + 1/3 as 2/5. It is the single most common slip, and it comes from treating the two denominators as if the pieces were the same size. They are not, which is exactly why the common-denominator step exists. If you ever get a sum smaller than one of the fractions you added, that is the tell.

The second is forgetting to flip when dividing. "Keep, change, flip" only works if you actually flip the second fraction, and it is easy to change the sign to multiplication while leaving both fractions the right way up. The result comes out as the reciprocal of what you wanted. The third is stopping before you reduce: 6/15 is a correct intermediate answer but not a finished one, and leaving it unreduced makes the number harder to compare and easy to mistype. The fourth, specific to mixed numbers, is losing the whole part - converting 1 1/2 to 1/2 instead of 3/2 by ignoring the leading 1.

The reason I show every step in the Fraction Calculator is that a visible common-denominator line, a visible flip, and a visible reduction each catch one of these mistakes before it becomes an answer you trust. Checking a fraction is much easier when you can see where the reasoning went, not just what fell out at the end - the same reason I would rather read a diff than a final file. When the stakes are higher, converting the fraction to a decimal and sanity-checking the size against a rough mental estimate is a fast second opinion.

Frequently Asked Questions

How do I add two fractions with different denominators? Find a common denominator, rewrite both fractions over it, add the numerators, then simplify. For example, 1/2 + 1/3: the least common denominator of 2 and 3 is 6, so 1/2 becomes 3/6 and 1/3 becomes 2/6, giving 5/6. This calculator does all of that automatically and shows each step.

How do you multiply and divide fractions? To multiply, multiply the numerators together and the denominators together: 2/3 × 3/5 = 6/15, which reduces to 2/5. To divide, flip the second fraction and multiply: 1/2 ÷ 3/4 becomes 1/2 × 4/3 = 4/6 = 2/3. Unlike addition, you do not need a common denominator for multiplication or division.

Can I use mixed numbers like 1 1/2? Yes. Type the whole part, a space, then the fraction - for example "1 1/2" or "-2 3/4". The calculator converts the mixed number to an improper fraction internally, does the arithmetic, and gives the answer back as both an improper fraction and a mixed number.

How does it simplify fractions to lowest terms? It divides the numerator and denominator by their greatest common divisor (GCD). For example, 6/15 has a GCD of 3, so it reduces to 2/5. A fraction is in lowest terms when the only number that divides both top and bottom evenly is 1.

Can it convert a decimal to a fraction? Yes. Enter a decimal such as 0.75 and the calculator reads it as a fraction over a power of ten (75/100), then reduces it (3/4). Terminating decimals convert exactly; repeating decimals such as 0.333… are treated as the digits you type, so enter 1/3 directly if you need the exact third.

What happens if I divide by zero? Division by zero is undefined, so the calculator reports an error instead of returning a result. This happens if the second value is 0 or a fraction with a zero numerator like 0/5 when dividing. Every other combination of valid inputs produces an exact answer.

Does the calculator handle negative fractions? Yes. Put a minus sign in front of any input - "-3/4", "-1 1/2", or "-0.5" - and the sign is carried through the calculation. The result keeps the correct sign, always shown on the numerator with a positive denominator.

Why does the answer show as both a fraction and a mixed number? An improper fraction like 5/4 and the mixed number 1 1/4 are the same value written two ways. Recipes and measurements usually want the mixed number, while further algebra is easier with the improper fraction, so the calculator gives you both plus the decimal.


This guide accompanies the free Fraction Calculator on toolz.dev - no signup, no uploads, works offline.

Comments

0 comments

0/2000 characters

No comments yet. Be the first to share your thoughts!