Skip to content
Fraction Calculator

Fraction Calculator with Every Step Shown

Type 2 1/2 + 3/4 × 1 1/3 on one line or fill in two fractions, and the fraction calculator answers in lowest terms, as a mixed number and as an exact decimal. Every step is written out the way a teacher marks it, and each fraction is drawn as a bar with a number line for the answer.

Tap ± for a negative fraction. Type 3/4 in one box and it splits itself.

The answer appears here in lowest terms, as a mixed number and as an exact decimal – with every step and a picture.

History (0)

Your last calculations are kept in this browser only.

    Enter or Ctrl+Enter = calculate

    How to use the fraction calculator

    There are two ways in, both under the Calculate tab. Type the whole problem on one line, exactly as it is printed on the worksheet: 2 1/2 + 3/4 × 1 1/3 − 0.5. A whole number, a space and a fraction is one mixed number; a slash with no spaces around it is a fraction bar, so 3/4 is one number; a slash with spaces around it, or right after a closing bracket, divides. ×, * or x multiplies, ÷ or : divides, the word of means times, 50% is a number, and brackets work as you expect, with × and ÷ before + and −. An ambiguous 1/2/3 is refused with a request for brackets instead of a guess. A line may hold up to 200 characters, 30 numbers and 300 digits per number. On the line the answer appears while you type, and Enter calculates.

    The other way is the Two fractions button, which is where I start beginners. Tap ± to make a fraction negative, tick Mixed numbers to get a box for the whole number, or type 3/4 or 2 1/2 straight into a box and it splits itself into the right boxes. Both modes use the same engine, so they always agree.

    Before any working, the calculator prints how it read your line, for example Read as: (5/2) + (3/4) × (4/3). Check that first: most of the wrong answers I mark come from a problem copied wrong, not from bad arithmetic.

    Four more tabs simplify a fraction, turn a decimal into a fraction and back, compare two fractions, and round decimal inches or millimetres to the nearest tape-measure mark. Copy puts the whole result on your clipboard, Continue with the answer carries it into the next problem, and the last 20 calculations are kept in your own browser, with an Undo if you clear them. A minus sign can go in front, on top or underneath: −3/4, (−3)/4 and 3/(−4) are the same number, as the Grade 7 standard on rational numbers spells out. The Esc key never wipes your input.

    Adding and subtracting fractions: the LCD in three moves

    The denominator names the size of the pieces, and you can only add pieces of the same size. That is why 1/2 + 1/3 is not 2/5. The Grade 5 fractions standard asks for exactly this: replace the fractions with equivalent fractions that share a denominator. My classroom rule: find the LCD before you touch a numerator.

    1. Find the least common denominator, the LCM of the denominators.
    2. Multiply each fraction, top and bottom, by LCD ÷ its own denominator.
    3. Add or subtract the numerators, keep the LCD, then reduce.
    1/2 + 1/3 → LCD 6 → 3/6 + 2/6 = 5/6
    7/12 − 5/18 → LCD 36 → 21/36 − 10/36 = 11/36
    Bars for one half and one third re-cut into sixths: three sixths plus two sixths make five sixths
    The LCD is just a common way to cut the bar.

    The cross formula (ad + bc)/bd, shown on calculator.net, always works but makes bigger numbers: for 7/12 − 5/18 it uses 216 and lands on 66/216, which you still have to reduce by 6. Three or more fractions are no harder on one line: 1/4 + 1/6 + 1/8 uses LCD 24, not 192, so 6/24 + 4/24 + 3/24 = 13/24 = 0.541(6). The calculator draws the bars of every operand re-cut into LCD pieces whenever the LCD is 48 or less, so you can see why it works. The guide to unlike denominators shows how to find the LCD from prime factors.

    Mixed numbers: improper first, borrow when you subtract

    Turn each mixed number into an improper fraction before anything else: whole × denominator + numerator, over the same denominator. 2 3/4 = (2 × 4 + 3)/4 = 11/4. The minus in front of a mixed number covers all of it: −2 3/4 is −(2 + 3/4) = −11/4, not −2 + 3/4. So −2 3/4 + 3 5/7 = −11/4 + 26/7 = −77/28 + 104/28 = 27/28. In the boxes, put the minus in front of the whole number or tap ±; a whole number of 2 with a numerator of −3 gets a message asking you where the minus belongs, not a guess.

    Subtraction is where homework goes wrong. In 3 1/4 − 1 5/6, rename to twelfths: 3 3/12 − 1 10/12. You cannot take 10/12 from 3/12, so borrow one whole as 12/12: 2 15/12 − 1 10/12 = 1 5/12. The improper route gives the same: 39/12 − 22/12 = 17/12 = 1 5/12. The fraction calculator shows the improper route every time and adds the borrowing line when it applies, so a student can match whichever method the class uses. Another one from a worksheet: 4 1/2 − 2 3/4 → 4 2/4 − 2 3/4 → 3 6/4 − 2 3/4 = 1 3/4.

    Multiplying and dividing fractions

    Multiplying needs no common denominator: tops times tops, bottoms times bottoms, then reduce. Convert mixed numbers first. 2 1/2 × 1 1/3 = 5/2 × 4/3 = 20/6 = 10/3 = 3 1/3. Multiplying the parts separately (2 × 1 and 1/2 × 1/3) gives 2 1/6, a mistake I see every term. "Of" is multiplication too: 3/5 of 2 1/2 = 3/5 × 5/2 = 3/2 = 1 1/2, and 3/8 of 40 = 15.

    To divide, keep the first fraction, change ÷ to ×, and flip the divisor (the method CalculatorSoup also teaches): 5/6 ÷ 2/3 = 5/6 × 3/2 = 15/12 = 5/4 = 1 1/4. Flip the second fraction, never the first. Why the flip works, with pictures and word problems, is in the keep-change-flip guide.

    Order of operations matters as soon as there are three terms: 1/2 + 1/3 × 3/4 = 1/2 + 1/4 = 3/4, while (1/2 + 1/3) × 3/4 = 5/6 × 3/4 = 5/8. A two-box calculator never shows you the difference; the one-line mode does, with the reading printed above the steps.

    Lowest terms with the GCF

    Simplifying means dividing top and bottom by their greatest common factor. For small numbers you can spot it; for anything bigger I use Euclid's algorithm, which the Simplify tab writes out line by line:

    126 = 1 × 84 + 42
    84 = 2 × 42 + 0 → GCF 42, so 84/126 = 2/3

    For 21/98: 98 = 4 × 21 + 14, 21 = 1 × 14 + 7, 14 = 2 × 7 + 0, so the GCF is 7 and the fraction is 3/14. Two minus signs cancel: −18/−24 = 3/4.

    Which fraction is bigger

    Cross-multiply and compare. For 5/8 against 3/5: 5 × 5 = 25 and 8 × 3 = 24, so 5/8 is bigger, by exactly 1/40. For 7/12 against 5/8: 7 × 8 = 56 and 12 × 5 = 60, so 7/12 is smaller, by 1/24. Rounded decimals can fool you: to six places, 1/3 and 333333/1000000 both read 0.333333, yet they differ by 1/3000000. The Compare tab gives the exact relation, both fractions over the LCD, the cross products, the difference and both decimals with enough digits to tell them apart. Either side can be a decimal, so 0.75 against 3/4 reports equal.

    Fractions and decimals: terminating, repeating and how to type them

    A fraction is a division, and long division either stops or settles into a repeating block (standard 7.NS.A.2d). A fraction in lowest terms terminates only when its denominator has no prime factors other than 2 and 5: 1/8 = 0.125, but 5/12 = 0.41(6) because 12 contains a 3. Watch the remainders in 5 ÷ 12: 50 ÷ 12 = 4 r 2, 20 ÷ 12 = 1 r 8, 80 ÷ 12 = 6 r 8. Remainder 8 has come back, so the 6 repeats forever.

    Going the other way, count the decimal places, as Math is Fun explains: 0.375 = 375/1000 = 3/8, and 1.0625 = 10625/10000 = 17/16 = 1 1/16. Typed with three places, 0.333 is 333/1000, and the Decimal ↔ fraction tab adds a hint to type 0.(3) if you meant the repeating one; only the repeating 0.333… is 1/3. To enter a repeating decimal, write the period in parentheses (0.1(6)) or square brackets (0.1[6]), or end with dots (0.1666…) and the calculator says which block it read: 0.1666... = 0.1(6). A decimal comma such as 0,75 works too, and so do .5, 5., 1e-3 and a real minus sign. The tab writes out the long division with its remainders for a fraction, and the shift-and-subtract steps for a repeating decimal. For 1.2(36) the trick is to shift by the repeat: 1000x − 10x = 1236.3636… − 12.3636… = 1224, so x = 1224/990 = 68/55.

    Common fractions as exact decimals (repeating digits in parentheses)
    FractionExact decimalRounded to 4 decimal placesPercent (to 2 places)
    1/20.50.500050%
    1/40.250.250025%
    3/40.750.750075%
    1/80.1250.125012.5%
    3/80.3750.375037.5%
    5/80.6250.625062.5%
    7/80.8750.875087.5%
    1/30.(3)0.333333.33%
    2/30.(6)0.666766.67%
    1/60.1(6)0.166716.67%
    5/60.8(3)0.833383.33%
    1/70.(142857)0.142914.29%
    1/90.(1)0.111111.11%
    1/120.08(3)0.08338.33%

    The full chart, every reduced fraction up to twelfths and sixteenths plus all sixty-fourths of an inch in millimetres, is in the fraction to decimal chart.

    Fractions in the workshop and the kitchen

    My tape measure reads in sixteenths, and plans rarely do. Adding two measurements: 5 3/8″ + 2 11/16″ = 86/16 + 43/16 = 129/16 = 8 1/16″. A cut list on one line: from a 96″ board, three shelves at 23 5/8″ with a 1/8″ saw kerf per cut leave 96 − 3 × 23 5/8 − 3 × 1/8 = 99/4 = 24 3/4″. How many 3/8″ spacers come out of 1 1/2″? 3/2 ÷ 3/8 = 4.

    To find the nearest mark, multiply the decimal by the denominator, round to a whole number and put it back over the denominator. A plan says 0.47″: 0.47 × 32 = 15.04, so the mark is 15/32″ (0.46875″, 0.00125″ short). For 1.33″ at sixty-fourths, 1.33 × 64 = 85.12, so 85/64 = 1 21/64″. Millimetres go through 25.4 mm per inch exactly: 8.5 mm is about 0.3346″, and the nearest 1/32 is 11/32″ = 8.73125 mm, 0.23125 mm long. The Inches & mm tab does this at any precision from 1/2 to 1/64. It takes inches, millimetres or a typed measurement such as 23 5/8″, shows the error in inches and in millimetres and whether the mark runs long or short, rounds a reading exactly halfway up to the larger mark, and lists the nearest mark at every precision in one table. A second mode finds the closest fraction with a denominator up to a limit you choose: 3.14159 gives 355/113 up to 1000 and 311/99 up to 100.

    Half an inch of a ruler in sixteenths: 0.3 inch falls just before the 5/16 mark
    Rounding 0.3″ to the nearest sixteenth.

    In the kitchen, one and a half batches of a recipe that takes 3/4 cup need 3/4 × 1 1/2 = 9/8 = 1 1/8 cups; two thirds of the recipe takes 3/4 × 2/3 = 1/2 cup; and 2 1/3 cups split three ways is 7/9 cup each. No measuring cup shows 7/9, so I measure 3/4 cup and add a little: the gap is 1/36 cup.

    Mistakes I mark most often

    Whole numbers under the hood: why nothing gets rounded

    Every number is stored as a pair of integers of any length, never as a floating-point decimal. That is why 0.1 + 0.2 comes out as exactly 3/10, and a 30-digit numerator keeps all of its digits. After each step the result is normalised: positive denominator, numerator and denominator with GCF 1, zero written as 0/1. Decimals are produced by long division that tracks remainders, so a repeating block is found, not guessed. The only rounding is the separate 4-place line and the Inches & mm tab, where you choose the precision and the error is shown; a decimal longer than 60 digits is cut there and ends with “…”. A zero denominator or a division by zero gets a plain message (“Denominator can't be zero”, “Can't divide by zero”) instead of a number. Everything runs in your browser; nothing you type is sent anywhere, and the history lives only in your own browser storage.

    Before release the fraction calculator is run against control cases worked out separately with Python's exact fractions module, in English and in German. The main ones:

    Control cases and expected results
    InputExpected result
    1/2 + 1/35/6 = 0.8(3)
    7/12 − 5/1811/36 = 0.30(5), LCD 36 (×3, ×2)
    −2 3/4 + 3 5/727/28 = 0.96(428571)
    3 1/4 − 1 5/617/12 = 1 5/12, borrowing 2 15/12 − 1 10/12
    2 1/2 × 1 1/310/3 = 3 1/3
    5/6 ÷ 2/35/4 = 1.25
    1/2 + 1/3 × 3/43/4
    (1/2 + 1/3) × 3/45/8
    1/4 + 1/6 + 1/813/24 = 0.541(6)
    96 − 3 × 23 5/8 − 3 × 1/824 3/4
    Boxes: −3/4 + 1/4, whole 2 + 1/3−1/2; 7/3 = 2 1/3
    Simplify 84/126; 21/98; −18/−242/3 (GCF 42); 3/14; 3/4
    Decimal to fraction: 0.375; 1.0625; 0,75; 0.3333/8; 1 1/16; 3/4; 333/1000
    Repeating to fraction: 0.(3); 0.1(6); 1.2(36); 0.(9); 0.41(6)1/3; 1/6; 68/55; 1; 5/12
    Fraction to decimal: 5/12; 1/7; 22/7; 3/11; 1/80.41(6); 0.(142857); 3.(142857); 0.(27); 0.125
    1 followed by 30 zeros, over 1all 31 digits, not 1e+30
    Compare 5/8 and 3/55/8 is greater (25 > 24), difference 1/40
    Compare 1/3 and 333333/10000001/3 is greater, difference 1/3000000
    Compare 7/12 and 5/87/12 is less (56 < 60), difference −1/24
    0.3 in, nearest 1/165/16 in (+0.0125 in)
    1.33 in, nearest 1/641 21/64 in (−0.001875 in)
    0.6875 in, nearest 1/1611/16 in, exact
    8.5 mm, nearest 1/3211/32 in = 8.73125 mm (+0.23125 mm)
    3.14159, denominator at most 1000; at most 100355/113; 311/99
    1/2 ÷ 0“Can't divide by zero”, no result

    Common questions

    How do you add fractions with different denominators?

    Rename them over the least common denominator, add the numerators and reduce. For 1/2 + 1/3 the LCD is 6, so 3/6 + 2/6 = 5/6.

    How do you subtract mixed numbers with borrowing?

    Rename the fractional parts over the LCD; if the first is smaller, take one whole from the first number as LCD/LCD. 3 1/4 − 1 5/6 becomes 2 15/12 − 1 10/12 = 1 5/12.

    How do you turn a repeating decimal into a fraction?

    Multiply by powers of ten so the repeating parts line up, subtract and reduce. For 0.1(6), 100x − 10x = 16.666… − 1.666… = 15, so x = 15/90 = 1/6.

    What is 0.375 as a fraction?

    0.375 = 375/1000, and dividing by the GCF 125 gives 3/8. In the same way 0.3125 = 5/16 and 0.6875 = 11/16.

    How do you convert decimal inches to the nearest 1/16?

    Multiply by 16, round to the nearest whole number and write it over 16, reducing if you can. 0.3″ × 16 = 4.8, so the mark is 5/16″, 0.0125″ longer than the plan.

    Can a fraction have a negative denominator?

    Yes, but it means the same as a minus in front or on top: 3/(−4) = (−3)/4 = −3/4. The usual habit is to keep the denominator positive, and the calculator moves the minus to the top for you.

    Guides

    Updated