Ekuation

Math

Fraction Calculator

Our Fraction Calculator handles addition, subtraction, multiplication, division, simplification, comparison, and decimal conversion with step-by-step explanations for every operation. Work with proper fractions, improper fractions, or mixed numbers and see results in fractional, mixed number, decimal, and percentage form.

Enable this to input and display fractions as mixed numbers (e.g., 1 1/2)

Choose the operation to perform

Common Fractions (Fraction 1)

Common Fractions (Fraction 2)

Tips

Click to show tips

Try an Example

Pick a scenario to see how the calculator works, then adjust the values

Add Fractions

Add 1/2 + 1/3 and see the step-by-step solution.

Key values: 1/2 + 1/3 · Common denominators · Simplified result

Simplify a Fraction

Reduce 24/36 to its simplest form using GCD.

Key values: 24/36 · GCD method · Lowest terms

Decimal to Fraction

Convert 0.75 to a fraction and see the work.

Key values: 0.75 · Fraction conversion · Simplified

Mixed Number Division

Divide 2 1/4 by 1 1/2 with mixed number support.

Key values: 2 1/4 ÷ 1 1/2 · Mixed numbers · Step-by-step

Documentation

About This Calculator

A fraction represents a part of a whole. The number above the line is the numerator (how many parts you have), and the number below is the denominator (how many equal parts the whole is divided into). In 34\frac{3}{4}, you have 3 out of 4 equal parts.

This Fraction Calculator handles eight operations in a single tool: addition, subtraction, multiplication, division, simplification, comparison, decimal-to-fraction conversion, and fraction-to-decimal conversion. Every calculation produces a step-by-step solution panel showing the LCD calculation, equivalent fractions, GCD simplification, and mixed number conversion. A visual pie chart representation accompanies each result so you can see the fraction, not just compute it.

Toggle mixed number mode to work with numbers like 2342\frac{3}{4} directly. Purpose-built variants for cooking and construction come with contextual presets, and the built-in Quick Start scenarios let you explore realistic problems instantly.


How to Use

  1. Select an operation from the dropdown: Add, Subtract, Multiply, Divide, Simplify, Compare, Decimal to Fraction, or Fraction to Decimal.
  2. Toggle mixed numbers if you need whole-number parts (e.g., 1381\frac{3}{8}). The whole number field appears automatically.
  3. Enter the first fraction — numerator and denominator. For Simplify, Fraction to Decimal, and Recipe Scaling, only the first fraction is needed.
  4. Enter the second fraction for operations that require two inputs (Add, Subtract, Multiply, Divide, Compare).
  5. For Decimal to Fraction, enter a decimal value instead. The calculator handles both terminating decimals (0.625) and repeating decimals (0.333...).
  6. Click Calculate to see the result displayed as a simplified fraction, decimal, percentage, and mixed number (when applicable), along with a step-by-step solution and pie chart visualization.

All Eight Operations

  • Add — Combines two fractions using the least common denominator.
  • Subtract — Finds the difference, which may be negative.
  • Multiply — Multiplies numerators and denominators directly, then simplifies.
  • Divide — Multiplies by the reciprocal of the second fraction.
  • Simplify — Reduces a single fraction to lowest terms using the GCD.
  • Compare — Determines which of two fractions is greater, less, or equal.
  • Decimal to Fraction — Converts a decimal (terminating or repeating) to a simplified fraction.
  • Fraction to Decimal — Converts a fraction to its decimal equivalent and identifies whether it terminates or repeats.

Formulas

Addition (LCD Method)

When adding ab+cd\frac{a}{b} + \frac{c}{d}, find the least common denominator L=lcm(b,d)L = \text{lcm}(b, d):

ab+cd=a(L/b)+c(L/d)L\frac{a}{b} + \frac{c}{d} = \frac{a \cdot (L/b) + c \cdot (L/d)}{L}

Subtraction

Same approach, subtracting the adjusted numerators:

abcd=a(L/b)c(L/d)L\frac{a}{b} - \frac{c}{d} = \frac{a \cdot (L/b) - c \cdot (L/d)}{L}

Multiplication

No common denominator needed. Multiply straight across:

ab×cd=acbd\frac{a}{b} \times \frac{c}{d} = \frac{a \cdot c}{b \cdot d}

Division

Flip the second fraction (take its reciprocal), then multiply. Requires c0c \neq 0:

ab÷cd=ab×dc=adbc\frac{a}{b} \div \frac{c}{d} = \frac{a}{b} \times \frac{d}{c} = \frac{a \cdot d}{b \cdot c}

Simplification (GCD)

Divide both numerator and denominator by their greatest common divisor. The GCD is computed using the Euclidean algorithm: gcd(a,b)=gcd(b,  amodb)\gcd(a, b) = \gcd(b,\; a \bmod b), with base case gcd(a,0)=a\gcd(a, 0) = a.

ab=a÷gcd(a,b)b÷gcd(a,b)\frac{a}{b} = \frac{a \div \gcd(a,b)}{b \div \gcd(a,b)}

LCM (Least Common Multiple)

Used to find the LCD for addition and subtraction:

lcm(a,b)=abgcd(a,b)\text{lcm}(a, b) = \frac{|a \cdot b|}{\gcd(a, b)}

Comparison (Cross Multiplication)

To compare ab\frac{a}{b} and cd\frac{c}{d}, compute a×da \times d and b×cb \times c. If ad>bcad > bc, the first fraction is larger. If ad=bcad = bc, they are equal.

Mixed Number Conversion

To convert a mixed number abca\frac{b}{c} to an improper fraction:

abc=a×c+bca\frac{b}{c} = \frac{a \times c + b}{c}

To convert back, divide the numerator by the denominator:

nd=n/d  nmoddd\frac{n}{d} = \lfloor n/d \rfloor \;\frac{n \bmod d}{d}

Decimal to Fraction

For a terminating decimal with nn digits after the point, write it over 10n10^n and simplify. For a repeating decimal 0.r0.\overline{r} with kk repeating digits:

0.r=r10k10.\overline{r} = \frac{r}{10^k - 1}

For mixed repeating decimals with mm non-repeating digits followed by kk repeating digits:

x=(full integer)(non-repeating part)10m(10k1)x = \frac{\text{(full integer)} - \text{(non-repeating part)}}{10^m \cdot (10^k - 1)}

Worked Examples

Example 1: Student Homework — Adding Unlike Fractions

A 5th grader needs to solve 16+38\frac{1}{6} + \frac{3}{8} for homework. The denominators are different, so we need the LCD.

  1. Find the LCD: lcm(6,8)=24\text{lcm}(6, 8) = 24.
  2. Convert each fraction: 1×424+3×324=424+924\frac{1 \times 4}{24} + \frac{3 \times 3}{24} = \frac{4}{24} + \frac{9}{24}.
  3. Add the numerators: 4+924=1324\frac{4 + 9}{24} = \frac{13}{24}.
  4. Check simplification: gcd(13,24)=1\gcd(13, 24) = 1 — already in lowest terms.
16+38=13240.5417\frac{1}{6} + \frac{3}{8} = \frac{13}{24} \approx 0.5417

Example 2: Construction — Subtracting Mixed Numbers

A carpenter has a board that is 5385\frac{3}{8} inches wide and needs to remove 17161\frac{7}{16} inches for a dado joint. How wide is the remaining piece?

  1. Convert to improper fractions: 538=4385\frac{3}{8} = \frac{43}{8} and 1716=23161\frac{7}{16} = \frac{23}{16}.
  2. Find the LCD: lcm(8,16)=16\text{lcm}(8, 16) = 16.
  3. Convert and subtract: 86162316=6316\frac{86}{16} - \frac{23}{16} = \frac{63}{16}.
  4. Simplify: gcd(63,16)=1\gcd(63, 16) = 1 — already in lowest terms.
  5. Convert to mixed number: 6316=31516\frac{63}{16} = 3\frac{15}{16}.
5381716=31516 inches5\frac{3}{8} - 1\frac{7}{16} = 3\frac{15}{16} \text{ inches}

Example 3: Cooking — Scaling a Recipe

A recipe calls for 34\frac{3}{4} cup of flour. You want to double it. Doubling means multiplying by 2:

  1. Set up the multiplication: 34×21\frac{3}{4} \times \frac{2}{1}.
  2. Multiply numerators and denominators: 3×24×1=64\frac{3 \times 2}{4 \times 1} = \frac{6}{4}.
  3. Simplify: gcd(6,4)=2\gcd(6, 4) = 2, so 6÷24÷2=32\frac{6 \div 2}{4 \div 2} = \frac{3}{2}.
  4. Convert to mixed number: 32=112\frac{3}{2} = 1\frac{1}{2} cups.
34×2=32=112 cups\frac{3}{4} \times 2 = \frac{3}{2} = 1\frac{1}{2} \text{ cups}

Mixed Numbers

A mixed number combines a whole number with a proper fraction: 2342\frac{3}{4} means "two and three-quarters." Toggle the Use Mixed Numbers checkbox to enter whole-number parts directly.

Internally, the calculator converts every mixed number to an improper fraction before performing any operation. For example, 234=2×4+34=1142\frac{3}{4} = \frac{2 \times 4 + 3}{4} = \frac{11}{4}. After the calculation, if the result is an improper fraction, it is automatically converted back to a mixed number for display.

Negative mixed numbers: If you enter a negative whole part (say, 3-3 with fraction 14\frac{1}{4}), the calculator treats this as 314=134-3\frac{1}{4} = -\frac{13}{4}. The sign applies to the entire quantity, not just the whole part.


Decimal Conversions

Terminating vs. Repeating Decimals

A fraction produces a terminating decimal when its denominator (in lowest terms) has only 2 and 5 as prime factors. For instance, 38\frac{3}{8} terminates because 8=238 = 2^3: the result is 0.375 exactly.

If the denominator contains any other prime factor, the decimal repeats. The classic example is 13=0.333=0.3\frac{1}{3} = 0.333\ldots = 0.\overline{3}.

The Repeating Decimal Formula

To convert a purely repeating decimal 0.r0.\overline{r} where rr has kk digits, use the algebraic trick: multiply by 10k10^k, subtract the original, and solve.

0.142857  =  142857999999  =  170.\overline{142857} \;=\; \frac{142857}{999999} \;=\; \frac{1}{7}

For a mixed repeating decimal like 0.160.1\overline{6} (which equals 16\frac{1}{6}), the general formula accounts for both the non-repeating and repeating portions.


Reading the Step-by-Step Panel

After each calculation, the Step-by-Step Solution panel breaks the work into numbered steps. Here is what you will typically see:

  1. Original problem — the fractions and operation as you entered them.
  2. Mixed number conversion — if applicable, the conversion from mixed numbers to improper fractions.
  3. LCD calculation — the least common denominator and how each fraction is adjusted (for addition and subtraction).
  4. Numerator arithmetic — the actual addition, subtraction, or multiplication of numerators.
  5. GCD simplification — finding the GCD and dividing both parts of the result.
  6. Final result — the simplified fraction, mixed number, decimal, and percentage.

Each step includes the LaTeX formula so you can follow the exact math. Use this panel for homework verification or to learn the method yourself.


A Brief History of Fraction Notation

Fractions are ancient. The Rhind Papyrus (c. 1650 BC) from Egypt records tables of unit fractions — fractions with numerator 1 — written with a mouth-shaped hieroglyph above the denominator. The Egyptians worked almost exclusively with unit fractions, decomposing values like 25\frac{2}{5} into sums such as 13+115\frac{1}{3} + \frac{1}{15}.

Indian mathematicians (Brahmagupta, c. 628 AD) wrote one number above another without a bar. Arab scholars later added the horizontal line (the vinculum), and al-Khwarizmi transmitted this notation westward. Fibonacci brought Hindu-Arabic numerals and fraction notation to Europe in 1202 through his Liber Abaci. The slash (/) as an inline separator emerged in the 18th century.


Common Misconceptions

MisconceptionWhy It Is Wrong
13+14=27\frac{1}{3} + \frac{1}{4} = \frac{2}{7} (add tops and bottoms)You must find a common denominator first: 412+312=712\frac{4}{12} + \frac{3}{12} = \frac{7}{12}.
A larger denominator means a larger fraction (e.g., 18>14\frac{1}{8} > \frac{1}{4})A larger denominator means smaller pieces: 18<14\frac{1}{8} < \frac{1}{4}.
Forgetting to simplify the final answerAlways reduce to lowest terms using the GCD. The calculator does this automatically.
Improper fractions like 73\frac{7}{3} are not "real" fractionsImproper fractions are valid — they simply represent values greater than 1.
Cross-multiplying when multiplying fractionsCross-multiplication is for comparing fractions or solving proportions, not for multiplying them.
Forgetting to flip the second fraction when dividingDivision means multiplying by the reciprocal. The second fraction must be inverted.
Thinking 05\frac{0}{5} is the same as 50\frac{5}{0}05=0\frac{0}{5} = 0 (valid), but 50\frac{5}{0} is undefined.
"Multiplying makes bigger" (from whole-number intuition)12×13=16\frac{1}{2} \times \frac{1}{3} = \frac{1}{6}, which is smaller than either operand.
34\frac{-3}{4} is different from 34\frac{3}{-4}Both equal 34-\frac{3}{4}. The negative sign can go on either the numerator or denominator.

Frequently Asked Questions

How do I add fractions with different denominators?

Find the least common denominator (LCD) of both denominators, convert each fraction to an equivalent fraction with that LCD, then add the numerators. For example, to add 13+14\frac{1}{3} + \frac{1}{4}, the LCD is 12: 412+312=712\frac{4}{12} + \frac{3}{12} = \frac{7}{12}. The calculator finds the LCD automatically and shows each conversion step.

What is a mixed number?

A mixed number has a whole-number part and a fraction part, like 3123\frac{1}{2} (three and a half). To compute with mixed numbers, convert them to improper fractions first: 312=723\frac{1}{2} = \frac{7}{2}. Toggle "Use Mixed Numbers" in the calculator to enter them directly.

When does a fraction produce a repeating decimal?

A fraction in lowest terms produces a repeating decimal when its denominator has a prime factor other than 2 or 5. So 38\frac{3}{8} terminates (since 8=238 = 2^3), but 13\frac{1}{3} repeats (since 3 is not 2 or 5). The length of the repeating block depends on the denominator. For 17\frac{1}{7}, the block is 6 digits long: 0.1428570.\overline{142857}.

What if the denominator is zero?

Division by zero is undefined in mathematics. The calculator validates inputs and shows a clear error message if any denominator is zero. Similarly, dividing by a fraction whose numerator is zero (e.g., 34÷05\frac{3}{4} \div \frac{0}{5}) is caught before computation.

Can I enter negative fractions?

Yes. Enter a negative numerator or negative denominator — the calculator normalizes the sign. For instance, 34\frac{3}{-4} is treated as 34-\frac{3}{4}. Negative results (such as subtracting a larger fraction from a smaller one) are displayed correctly.

Is this calculator free?

Yes, completely free with no sign-up required. The step-by-step solutions, pie chart visualizations, and all eight operations are available without restriction. Competitors like Mathway and Symbolab paywall their step-by-step explanations — this calculator does not.


References

  • Weisstein, Eric W. “Fraction.” MathWorld — A Wolfram Web Resource. https://mathworld.wolfram.com/Fraction.html
  • Encyclopaedia Britannica. “Euclidean algorithm.” https://www.britannica.com/science/Euclidean-algorithm
  • Wikipedia. “Euclidean algorithm.” https://en.wikipedia.org/wiki/Euclidean_algorithm
  • MacTutor History of Mathematics. “Babylonian mathematics.” University of St Andrews. https://mathshistory.st-andrews.ac.uk/HistTopics/Babylonian_mathematics/
  • Weisstein, Eric W. “Least Common Multiple.” MathWorld — A Wolfram Web Resource. https://mathworld.wolfram.com/LeastCommonMultiple.html

Disclaimer

This calculator is provided for educational and informational purposes only. While the underlying algorithms (Euclidean GCD, LCD via LCM, cross-multiplication comparison) are mathematically precise for integer inputs, floating-point limitations may affect decimal representations of very long repeating decimals. Always verify critical calculations — particularly in professional contexts such as construction measurements, medication dosages, or financial computations — through independent means.

Specialized Calculators

Choose from 5 specialized versions of this calculator, each optimized for specific use cases and calculation methods.

Related Calculators

6 Calculators

More Math calculators

Calculator Search

Search and find calculators