Fraction Calculator

Exact reduced fraction

5/6

Decimal expansion

0.8(3)

All results
Calculator inputs
?

Choose arithmetic, simplification or a decimal conversion. Each integer component can have up to 200 digits.

?

Addition and subtraction require equal-sized parts. Multiplication multiplies values; division uses the reciprocal of a nonzero second fraction.

First fraction
?

Signed integer above the first fraction bar. Up to 200 digits; omit commas and decimal points.


?

Nonzero integer below the first fraction bar. A negative denominator is moved into the numerator’s sign.

Second fraction
?

Signed integer above the second fraction bar. A zero numerator is allowed except when dividing by that fraction.


?

Nonzero integer below the second fraction bar. Both fractions must have defined denominators.

A denominator cannot be zero. Enter up to 200 digits per integer component.

See the fraction values

Every outlined whole represents 1. Bars compare magnitudes on the same 0–1 scale; signs stay in the labels. Each whole uses 6 equal parts.

First value1/2

First value: 1/2. Bar shows its absolute magnitude on a scale of zero to 1.

Second value1/3

Second value: 1/3. Bar shows its absolute magnitude on a scale of zero to 1.

Result5/6

Result: 5/6. Bar shows its absolute magnitude on a scale of zero to 1.

Bars illustrate values, not the steps of the operation. Very small parts may be below display resolution. The worked table explains the arithmetic.

Your fraction calculation, step by step

Integer fractions and mixed numbers remain exact. Parentheses in a decimal identify repeating digits; an ellipsis marks an incomplete preview. CSV exports preserve the working as text.

Your fraction calculation, step by step
StepWhyWorking
Normalize the inputsReduce each fraction and keep its denominator positive.1/2 = 1/2; 1/3 = 1/3
Set up the operationUse the selected operation on the two exact fractions.1/2 + 1/3
Find a common denominatorThe least common multiple preserves the size of the whole while making the parts equal.3/6 + 2/6
Combine the numeratorsAdd or subtract the numerators; retain the common denominator.5/6
Write the exact reduced fractionNumerator and denominator have no common positive factor other than one. A zero result is 0/1.5/6
Convert to a mixed numberDivide the numerator’s magnitude by the denominator; the remainder forms the fractional part.5/6
Read the decimalDigits inside parentheses repeat indefinitely.0.8(3)

How to use the Fraction Calculator

Add, subtract, multiply and divide fractions and mixed numbers. Simplify fractions, convert decimals and see exact answers, visual models and worked steps.

  1. 1. Enter your inputs

    Start with Calculate, Operation, First numerator, First denominator. Use the units shown beside each field and open the field help when you need its assumptions.

  2. 2. Read the results

    Results update as you enter valid values. Review Exact reduced fraction, Mixed number / whole number, Decimal expansion. Keep the entered units and settings consistent when comparing scenarios.

  3. 3. Check the calculation

    At most 200 digits per integer component; decimal input has at most 200 digits with a scientific exponent from -200 to 200. These are resource limits, not a claim of unlimited precision.

    See the worked example and method

Understanding the Fraction Calculator: uses, inputs and results

The Fraction Calculator preserves exact rational values while making common denominators, signs, mixed numbers and decimal notation visible.

Why do fractions need a common denominator when added?

The numerator counts parts and the denominator defines their size. Addition and subtraction require equivalent part sizes, while multiplication combines numerators and denominators directly. Division multiplies by the reciprocal of the second fraction. Exact integer arithmetic keeps these operations separate from a rounded decimal approximation.

What does reducing a fraction change?

Dividing numerator and denominator by a common factor changes the representation but not the value. A zero denominator is undefined, and dividing by a zero-valued second fraction is also invalid. Use the reduced fraction to compare exact values rather than assuming a displayed decimal contains every digit.

What do the Fraction Calculator inputs mean?

Calculate
Choose arithmetic, simplification or a decimal conversion. Each integer component can have up to 200 digits.
Operation
Addition and subtraction require equal-sized parts. Multiplication multiplies values; division uses the reciprocal of a nonzero second fraction. This field applies when Calculate is set to Fraction arithmetic or Mixed number arithmetic.
First numerator
Signed integer above the first fraction bar. Up to 200 digits; omit commas and decimal points. This field applies when Calculate is set to Fraction arithmetic.
First denominator
Nonzero integer below the first fraction bar. A negative denominator is moved into the numerator’s sign. This field applies when Calculate is set to Fraction arithmetic.
Second numerator
Signed integer above the second fraction bar. A zero numerator is allowed except when dividing by that fraction. This field applies when Calculate is set to Fraction arithmetic.
Second denominator
Nonzero integer below the second fraction bar. Both fractions must have defined denominators. This field applies when Calculate is set to Fraction arithmetic.
First mixed number
Enter an integer, a/b, or whole a/b. A leading minus applies to the whole mixed number: -2 3/4 = -11/4. This field applies when Calculate is set to Mixed number arithmetic.
Second mixed number
Use a space between the whole and fraction. A mixed fractional part may be improper and will be normalized; its denominator must be positive. This field applies when Calculate is set to Mixed number arithmetic.
Fraction or mixed number
Examples: 220/440, -3/4, 2 21/98 or 5. Signed ordinary denominators are normalized. Each integer component may have up to 200 digits. This field applies when Calculate is set to Simplify a fraction or mixed number or Fraction to decimal.
Decimal number
Enter exact typed digits: 1.375, -0.125, 1.2e-3, 0.(3) or 0.1(6). Parentheses mean repeating digits; 0.333 is the finite fraction 333/1000. At most 200 digits and exponent ±200. This field applies when Calculate is set to Decimal to fraction.

When is the Fraction Calculator useful?

How much is a fractional quantity after scaling?

A recipe using 1 1/2 cups scaled by 3/4 needs 9/8 cups, or 1 1/8 cups. Enter both quantities in mixed number mode and multiply. Keep ingredient volume separate from ingredient weight.

Check a calculation or convert a representation

Use the worked steps to inspect unlike-denominator arithmetic, reciprocal division and reduction. Convert finite or explicitly repeating decimals without guessing lost digits, and compare improper fractions with mixed numbers. Large integer components use exact arithmetic; the separate floating-point approximation can be rounded.

Fraction Calculator: a practical reference

The fixed “Half plus third (legacy inputs)” example on this page produces the results below. It illustrates the stated model; your live results above use your current inputs.

Calculate
Fraction arithmetic
Operation
Add (+)
First numerator
1
Exact reduced fraction
5/6
Mixed number / whole number
5/6
Review the example inputs and calculation

Use the result in context

At most 200 digits per integer component; decimal input has at most 200 digits with a scientific exponent from -200 to 200. These are resource limits, not a claim of unlimited precision.

Try the Fraction Calculator·Read the subject guide·Explore a related calculator

Worked example: Fraction Calculator

Half plus third (legacy inputs). This fixed reference example shows one complete scenario; the interactive results above use your current inputs.

View the example inputs
Calculate
Fraction arithmetic
Operation
Add (+)
First numerator
1
First denominator
2
Second numerator
1
Second denominator
3
Calculated results for the fixed example
Calculated quantityExample result
Exact reduced fraction5/6
Mixed number / whole number5/6
Decimal expansion0.8(3)
Floating-point approximation0.8333333333

Fraction calculator: understand the parts, signs and exact answer

What do the numerator and denominator mean?

A fraction a/b describes a value using a numerator a and a nonzero denominator b. For an ordinary positive part of a whole, b tells you how many equal parts make one whole and a tells you how many of those parts you have. Five eighths means five parts when each whole has been divided into eight equal pieces. The pieces must be equal for that interpretation to work.

This fraction calculator also accepts negative values, improper fractions and zero. A numerator greater than its positive denominator represents more than one whole; 9/4 means two wholes and one quarter. A denominator of zero is undefined, including 0/0. A zero numerator with a nonzero denominator is a valid zero and is reduced to 0/1.

How do I add fractions with different denominators?

Addition requires equal-sized parts. Find a common denominator, rewrite each fraction without changing its value, then add only the numerators. For 5/8 + 1/6, the least common denominator is 24. Rewriting gives 15/24 + 4/24, so the exact sum is 19/24. Adding the denominators would change the size of the parts and give the wrong result.

The worked table uses the least common multiple of the reduced denominators. Multiplying both denominators is another valid route, but can produce a larger intermediate fraction. The visual comparison uses equal-sized wholes, with common partitions when a reasonably small common denominator is available. It illustrates the values; the table explains the operation.

How do I subtract fractions and keep the sign correct?

Subtraction follows the same common-denominator process. For 5/6 − 1/4, use twelfths: 10/12 − 3/12 = 7/12. If the second value is larger, the result is negative. Reversing the inputs changes the sign, so 1/4 − 5/6 = −7/12.

A minus sign can be attached to the numerator, the denominator or the whole fraction. The calculator normalizes the answer to a positive denominator, so 2/−4 becomes −1/2. Two negative signs cancel: −2/−4 is 1/2. This sign normalization happens before the arithmetic and does not change the value.

How do I multiply fractions without making large intermediate numbers?

Multiply the numerators and multiply the denominators: (a/b) × (c/d) = ac/bd. You do not need a common denominator. Matching numerator and denominator factors can be canceled before multiplication because dividing both by the same nonzero factor preserves the product.

For 3/5 × 10/9, cancel a factor of 5 between 10 and 5, and a factor of 3 between 3 and 9. The remaining product is (1 × 2)/(1 × 3) = 2/3. The worked table shows cross-cancellation explicitly. It also preserves exact integer arithmetic when the entered numerators or denominators are too large for ordinary floating-point numbers.

OpenStax: Multiply and divide fractions

Why do I flip the second fraction when dividing?

Dividing by a nonzero fraction is equivalent to multiplying by its reciprocal. For 2/3 ÷ 4/5, keep the first fraction and multiply by 5/4. The product is 10/12, which reduces to 5/6. Only the second fraction is inverted; flipping both operands would solve a different problem.

The second fraction cannot be zero, even when its denominator is valid. Thus division by 0/5 is rejected. By contrast, 0/5 divided by 2/3 is zero. Convert a mixed number to one fraction before taking its reciprocal; the reciprocal of 2 1/2 is 2/5.

How do I calculate with mixed numbers such as −2 3/4?

A mixed number combines a whole magnitude and a fractional part. Multiply the whole part by the denominator, add the numerator, and then apply any leading minus sign. The input −2 3/4 therefore means −(2 + 3/4) = −11/4, rather than −2 + 3/4. Even −0 1/2 is interpreted as −1/2.

Select Mixed number arithmetic to enter values such as −2 3/4 and 3 5/7 directly. Their sum is 27/28. You may also enter an ordinary fraction or integer in either field. A mixed fractional part with a numerator larger than its denominator is normalized; the mixed form requires a positive denominator. The final answer is shown as an exact fraction and, when useful, a mixed or whole number.

To turn an improper fraction back into a mixed number, divide the numerator’s magnitude by the denominator. For −11/4, the quotient is 2 and the remainder is 3, giving −2 3/4. If the remainder is zero, the value is a whole number. The numerator’s sign applies to the entire mixed result.

OpenStax: Mixed numbers and complex fractions

How do I simplify a fraction to its lowest terms?

Divide the numerator and denominator by their greatest common factor. For 84/126, the greatest common factor is 42, so the reduced fraction is 2/3. Both parts are divided by the same factor; the value is unchanged. Reduction does not mean rounding or making the fraction smaller in magnitude.

The simplify mode also accepts a mixed number. For 2 21/98, conversion to an improper fraction gives 217/98. Dividing both terms by 7 gives 31/14, or 2 3/14. The calculation table shows the actual common factor and the resulting equivalent fraction. A denominator is kept positive so the location of the minus sign stays consistent.

How do I convert a decimal to a fraction exactly?

A finite decimal represents an exact fraction based on powers of ten. For 1.375, write 1375/1000 and reduce by 125 to obtain 11/8, or 1 3/8. For −0.125, write −125/1000 and reduce to −1/8. Scientific notation is also supported: 1.2e−3 represents 0.0012, or 3/2500; type an ordinary hyphen for the exponent in the input.

Every digit you enter matters. A finite 0.333 is exactly 333/1000 and is not silently changed to 1/3. If a measurement was rounded before you typed it, the calculator cannot recover the unknown original value. Decimal-to-fraction conversion describes the supplied number, not the precision of a measuring instrument.

OpenStax: Decimals and fractions

How do repeating decimals become fractions?

Use parentheses to identify a repeating block: 0.(3) means 0.333… indefinitely, while 0.1(6) means 0.1666… indefinitely. For a block of k repeating digits, the conversion uses a denominator factor of 10^k − 1, together with a power of ten for any non-repeating prefix. Thus 0.(3) = 3/9 = 1/3, and 0.1(6) = 15/90 = 1/6.

The calculator does not infer repetition from an unmarked string such as 0.333...; identify the repeating digits explicitly. Repeating nines are handled algebraically: 0.(9) equals 1 exactly, so it reduces to 1/1. Parentheses describe infinite repetition, rather than uncertainty or a digit count.

Will a fraction terminate or repeat as a decimal?

First reduce the fraction. Its decimal terminates when the positive denominator has no prime factors other than 2 and 5. Otherwise its decimal repeats. For example, 3/8 = 0.375 terminates, 1/6 = 0.1(6) repeats after a non-repeating prefix, and 2/7 = 0.(285714) repeats a six-digit block.

The decimal expansion is calculated by long division and repeated-remainder detection. A repeated remainder identifies a complete cycle. The preview stops after 200 decimal places: if a complete ending or cycle has not yet been reached, an ellipsis marks the unfinished expansion. A terminating fraction can also need more than 200 places, so the label distinguishes the type of decimal from whether its preview is complete.

The separate Numeric approximation disclosure contains an ordinary floating-point value for compatibility. It may be rounded, underflow or exceed the machine-number range. It is not used for the exact fraction, mixed number or worked steps. Use the exact fraction whenever a decimal preview ends in an ellipsis.

Wolfram MathWorld: Decimal expansion

When is a fraction calculator useful for recipes, measurements or study?

Use exact fractions when the quantities are supplied in fractional units. Scaling 1 1/2 cups by 3/4 gives 9/8 cups, or 1 1/8 cups. The multiplication describes recipe scaling; it does not establish the density or weight of the ingredient. For measurements, express the operands in the same unit before adding or subtracting.

For homework or checking a manual calculation, compare the common denominator, cross-cancellation, sign and reduction steps rather than copying only the final number. If two answers look different, reduce both: 6/8 and 3/4 are equal, whereas the rounded decimal 0.667 is not exactly 2/3. The reference examples below let you load a reproducible problem into the tool.

Can I calculate fractions with very large numerators?

All fraction integer fields support up to 200 digits per integer component and use integer arithmetic. You do not need a separate big-number form. For example, 9007199254740993/9007199254740992 − 1/9007199254740992 is exactly 1. A system that rounds the first numerator to a nearby machine integer before calculating would answer a different question.

When calling the calculation API, send large integers as quoted strings. Unsafe numeric integers are rejected before they can be converted to text; text cannot recover digits that were already rounded by a JSON parser. Inputs omit thousands separators, and resource limits are stated instead of describing the tool as unlimited. Complete text and CSV exports preserve exact fraction strings.

Fraction operation rules and examples

All original denominators must be nonzero. Equivalent common denominators and cross-cancellation can reduce intermediate work.

Fraction operation rules and examples
OperationRuleWorked example
Adda/b + c/d = (ad + bc)/(bd)5/8 + 1/6 = 19/24
Subtracta/b − c/d = (ad − bc)/(bd)5/6 − 1/4 = 7/12
Multiply(a/b) × (c/d) = ac/(bd)3/5 × 10/9 = 2/3
Divide(a/b) ÷ (c/d) = ad/(bc), with c ≠ 02/3 ÷ 4/5 = 5/6
SimplifyDivide both terms by gcd(|numerator|, denominator)84/126 = 2/3
Mixed to improperApply the leading sign to whole × denominator + numerator−2 3/4 = −11/4

Common fractions, decimals and percentages

Digits in parentheses repeat indefinitely. These are exact rational conversions, not rounded decimal approximations. A percentage is the fraction multiplied by 100.

Common fractions, decimals and percentages
Reduced fractionExact decimal notationPercentage
1/80.12512.5%
1/60.1(6)16.(6)%
1/50.220%
1/40.2525%
2/70.(285714)28.(571428)%
1/30.(3)33.(3)%
3/80.37537.5%
1/20.550%
2/30.(6)66.(6)%
3/40.7575%
7/80.87587.5%
1/11100%

Formula and calculation method

Fractions a/b and c/d have nonzero denominators. Add/subtract using L=lcm(|b|,|d|), scaling the numerators to L. Multiply numerators and denominators; divide by the reciprocal of a nonzero second fraction.

Reduce by gcd(|numerator|,denominator), keeping the denominator positive. A leading sign on a mixed number applies to its whole magnitude: -2 3/4 = -(2 + 3/4).

Finite decimal digits represent an exact rational with a power-of-ten denominator. Parenthesized repeating digits use a factor 10^k − 1; no repeating pattern is guessed from rounded digits.

Decimal previews use long division with repeated-remainder detection, up to 200 decimal places. Parentheses indicate a complete repeating block; an ellipsis indicates an incomplete preview. The separate floating-point approximation can be rounded.

Scope and Limitations

  • At most 200 digits per integer component; decimal input has at most 200 digits with a scientific exponent from -200 to 200. These are resource limits, not a claim of unlimited precision.
  • Send large API integers as quoted strings. Unsafe numeric JSON integers are rejected before conversion to text. For exact decimal digits, quoted strings are recommended. Inputs do not accept thousands separators, arbitrary expressions or an unmarked ellipsis.
  • Visual bars compare magnitudes using one common whole. Signs remain in labels. More than four wholes are omitted; partitions above 24 parts per whole are suppressed, with an explicit notice. A value comparison does not itself demonstrate the selected arithmetic operation.

Reference Sources

Frequently asked questions

How do I add fractions with unlike denominators?

Find a common denominator, rewrite both fractions using it, then add the numerators and reduce the result. This calculator uses the least common multiple of the reduced denominators.

Can I enter mixed numbers directly?

Yes. Select Mixed number arithmetic and enter an integer, a/b or whole a/b. A leading minus applies to the entire mixed number: -2 3/4 means -11/4.

How do I simplify a fraction?

Divide numerator and denominator by their greatest common factor and keep the denominator positive. Simplification preserves the value; it does not round it.

Is 0.333 the same fraction as one third?

No. A finite 0.333 is exactly 333/1000. Enter 0.(3) to specify an infinitely repeating 3, which equals 1/3.

What do parentheses or an ellipsis mean in a decimal result?

Parentheses identify a complete repeating block. An ellipsis means the preview stopped before a complete ending or repeating cycle was found, after at most 200 decimal places. Use the exact fraction for the full value.

Can a fraction have a negative denominator?

An ordinary fraction may have a negative denominator, but the result is normalized to a positive denominator with the sign in the numerator. Mixed number notation in this tool requires a positive fractional denominator.

Why can I not divide by a zero fraction?

A fraction with numerator zero represents zero when its denominator is nonzero. Division by that value is undefined, even though the fraction itself is valid.

How large can the fraction inputs be?

Each integer component accepts up to 200 digits. Large API integers must be quoted strings. Decimal input supports up to 200 digits and an exponent from -200 to 200. Exact fraction arithmetic is separate from the optional floating-point approximation.