Fraction calculator with work shown
Use this fraction calculator to add, subtract, multiply or divide two numbers, compare their sizes, or convert between a decimal and a fraction. It accepts ordinary fractions, mixed numbers, whole numbers and finite decimals in the same fields. A loaded addition example shows the answer before you start typing. Every valid edit updates the simplified fraction, mixed form when appropriate, decimal display and written steps. Use it to check arithmetic homework, scale recipe quantities or review the fraction skills needed for algebra.
Enter mixed numbers and negative values
Write a fraction with a slash between its numerator and denominator. For a mixed number, leave a space between the whole part and the fraction. The loaded first input, 1 3/4, becomes the improper fraction 7/4: multiply the whole part by the denominator, then add the numerator. The fractional part of a mixed input must be smaller than its denominator. If it is not, enter the complete value as an improper fraction instead.
A leading minus on a mixed number applies to the entire quantity. Entering -1 3/4 means -7/4, or -1.75. This convention avoids treating the positive fractional part as a separate addition. Ordinary fractions can have a negative numerator or denominator; the calculator moves the sign to the numerator and keeps denominators positive. A zero denominator is undefined and clears the answer. A blank field also clears it rather than silently supplying a value.
Worked addition example using the LCD
The loaded problem is 1 3/4 + 2/3. The calculator first converts the mixed number to 7/4. The greatest common divisor of the denominators is 1, so the least common denominator is (4 × 3) ÷ 1 = 12. Rewrite the inputs as 21/12 and 8/12. Adding their numerators gives 29/12. Its numerator and denominator have GCD 1, so the fraction is already in simplest form.
Divide the numerator by the denominator to write the answer as 2 5/12. The decimal display is 2.41(6), where parentheses mean that the enclosed digit repeats indefinitely. These are different representations of the same exact answer. The LCD changes the size of the pieces so both fractions use equal pieces; it does not change either input's value. Adding denominators directly would describe different pieces and produce an incorrect sum.
Subtract, multiply and divide
Subtraction uses the same LCD method as addition, then subtracts the second rewritten numerator from the first. With the loaded inputs, subtraction gives 13/12, or 1 1/12. Keep the order of the inputs: reversing subtraction changes the sign of the answer. Parentheses in the written steps make a negative second numerator easier to follow.
Multiplication does not need a common denominator. Multiply the numerators together and the denominators together, then reduce. The loaded inputs produce 14/12, which simplifies by GCD 2 to 7/6, or 1 1/6. Division multiplies the first fraction by the reciprocal of the second. The same inputs give 7/4 × 3/2 = 21/8, or 2 5/8, with exact decimal 2.625. A zero second value has no reciprocal, so division by it produces a correction instead of a result.
Simplify using the GCD
The greatest common divisor is the largest positive integer that divides both numerator and denominator evenly. Dividing both by it preserves the value and removes all common factors. For example, the conversion mode reduces 6/8 by GCD 2 to 3/4. The work shows simplification of the inputs and the final arithmetic result. Equivalent input fractions may therefore appear in reduced form before the tool calculates an LCD. A zero result is displayed as a whole number, and its internal fraction has a positive denominator.
Convert decimals exactly
Choose Convert decimal ↔ fraction and enter a single number. A finite decimal is read as text, placed over a power of ten and reduced. For 0.125, the steps start with 125/1000 and divide by GCD 125 to produce 1/8. There is no intermediate floating-point conversion, so the entered decimal digits remain exact. This is useful when a homework question asks for a rational answer rather than a rounded decimal.
In the other direction, long division produces the decimal. A terminating expansion is labeled exact. A complete repeating cycle appears in parentheses, as in 1/3 = 0.(3). If the expansion needs more than 120 decimal places before terminating or revealing its full cycle, the display ends in an ellipsis and is labeled truncated. The fraction above it remains exact. Repeating-decimal input, scientific notation and arithmetic expressions are not accepted; enter a finite decimal or a fraction instead.
Compare fractions and check your work
Choose Compare fractions to see a less-than, greater-than or equality statement. The calculator compares exact cross products after normalizing denominator signs. Comparing 5/8 with 2/3 gives products 15 and 16, so 5/8 < 2/3. This avoids confusing two close values because their rounded decimals look identical. Each input is limited to 120 characters to keep calculation and steps readable. For general expressions use the scientific calculator; for percentages and percent changes use the percentage calculator.