Fraction Calculator

—
—
—

    Fraction Calculator Features

    Integer-exact arithmetic

    Numerators and denominators stay as integers, so 1/3 + 1/6 gives exactly 1/2 rather than a drifting floating-point approximation

    Automatic common denominator

    Addition and subtraction use the least common denominator, then the result is reduced by the GCD; both steps are shown in the working

    Full step-by-step working

    Four readable steps cover common denominators, the raw calculation, reduction and decimal conversion

    Mixed numbers and improper fractions

    Values such as 1 1/2 can be used directly, and results are shown as an improper fraction, a mixed number and a decimal

    Decimals and repeating decimals

    Enter 0.75 to get 3/4, or 0.1 with repeating part 6 to get 1/6 exactly

    Adjustable decimal precision

    Choose 0 to 10 decimal places; digits come from integer long division with correct rounding of the last digit

    How to Use the Fraction Calculator

    1

    Enter two fractions

    Accepts 3/4, 1 1/2, 5, 0.75 and similar forms; put a minus sign first for negatives such as -2/3.

    2

    Pick an operator and precision

    Choose add, subtract, multiply or divide, and set how many decimal places the result should show.

    3

    Read the result and working

    Three cards show the reduced fraction, mixed number and decimal; the step list explains each transformation.

    4

    Convert a decimal back

    In the lower panel enter the decimal, and put the repeating digits into the repeat field, e.g. 0.1 with 6 gives 1/6.

    Where a Fraction Calculator Helps

    School homework

    Check common denominators and reduction, and use the step list to find where handwritten work went wrong

    Baking and recipe scaling

    Scale 3/4 cup by 1 1/2 to get 9/8 cup, i.e. 1 1/8 cups, without measurement rounding

    Woodworking and cutting

    Add inch fractions such as 5/8 and 3/16 without converting to decimals and losing precision

    Financial ratios

    Add equity, discount or revenue-share fractions exactly, then convert to decimals only at the end

    Programming education

    Demonstrate why rational numbers are stored as integer pairs and how repeating decimals map to rationals

    Worksheets and lesson plans

    Generate ready-to-copy worked examples and answer keys for fraction exercises

    Fraction Arithmetic Explained

    Why not floating point

    Binary floating point cannot represent 0.1 exactly, and repeated fraction operations accumulate that error. Keeping numerators and denominators as integers and reducing by the GCD after each operation keeps every result exact.

    Common denominators

    Fractions with different denominators must be rewritten with the same denominator first. The smallest convenient choice is lcm(a,b) = a*b / gcd(a,b), and each numerator is scaled by the same factor as its denominator.

    Mixed and improper fractions

    A mixed number has an integer part and a proper fraction, so 1 1/2 = 1 + 1/2 = 3/2. Calculations use improper fractions internally; the sign applies to the whole value.

    Which fractions terminate

    After reducing to lowest terms, a fraction has a terminating decimal exactly when the denominator has no prime factors other than 2 and 5, because decimal notation is based on 10 = 2*5. A factor of 3 or 7 produces a repeating decimal.

    Converting repeating decimals

    For x = 0.1666..., with one non-repeating and one repeating digit, 100x - 10x = 16 - 1 = 15, so x = 15/90 = 1/6. The tool computes (concatenated integer - non-repeating integer) / (power-of-ten difference) and then reduces.

    Common Fraction and Decimal Conversions

    InputReduced resultDecimal (6 places)
    1/2 + 1/35/60.833333
    3/4 - 1/67/120.583333
    2/3 * 9/103/50.600000
    5/8 / 1/45/22.500000
    0.75 to fraction3/40.750000
    0.1, repeat 61/60.166667
    Decimal digits come from integer long division with last-digit rounding; "repeat" is the block of digits that repeats forever.

    Fraction Calculator FAQ

    Q: Why does 1/3 + 1/6 give exactly 1/2?
    A: The tool keeps numerators and denominators as integers: (1*6 + 1*3)/(3*6) = 9/18, then divides both by the GCD 9 to get 1/2. No binary floating-point approximation is involved.
    Q: What input formats are supported?
    A: Fractions like a/b, mixed numbers like w n/d, integers and finite decimals. Put the minus sign first for negatives. A zero denominator and nested fractions are not accepted.
    Q: What happens when dividing by zero?
    A: Division by a zero fraction is undefined, so the tool shows a clear message instead of returning infinity or an unhelpful error page.
    Q: How are decimal digits computed?
    A: By integer long division, one extra digit is produced and the last retained digit is rounded with proper carry handling, so 2/3 at six places is 0.666667 rather than 0.666666.
    Q: What belongs in the repeat field?
    A: Only the digits that repeat. For 0.1666... enter 0.1 and repeat 6; for 0.272727... enter 0 and repeat 27; leave it empty for finite decimals.
    Q: Why is the mixed-number card sometimes empty?
    A: True fractions, integers and values without a non-zero integer part are not written as mixed numbers, so the tool says no conversion is needed instead of printing something like 0 1/2.
    Q: How large can numerators be?
    A: The kernel uses arbitrary-precision integers, so there is no 32-bit or 64-bit limit, though keeping inputs to a few dozen digits keeps the page responsive.