What this calculator does
Every fraction is a division waiting to be done. Converting one to a decimal is usually taught as a calculator button, but the interesting part is what the digits do. Some fractions stop after a few places because the denominator is built from twos and fives. Others repeat forever, and the repeating block can be found exactly by tracking the remainders in long division. This calculator does both.
How to use it
- Enter the numerator, allowing negative values if needed.
- Enter the denominator; zero is rejected because division is undefined.
- Choose how many decimal places to display.
- Read the exact decimal, percentage, and simplified fraction.
- Check whether the decimal terminates or repeats.
How it works
Example calculations
Example 1: a terminating decimal
3/8: 3 divided by 8 is 0.375 exactly, because 8 = 2³ has no prime factors other than 2. The percentage is 37.5%, the simplified fraction is already 3/8, and the mixed number is 0 3/8. A denominator of 2^a × 5^b always terminates.
Example 2: a single repeating digit
5/6: the long division gives 0.83333…, so the decimal is 0.8(3). The preperiod is 8, the repetend is 3, and the period length is one digit. Rounded to two places it is 0.83, but the exact value only exists with the repeating notation.
Example 3: a preperiod plus a cycle
7/12: 7 ÷ 12 = 0.58333…, so the calculator reports 0.58(3). The digits 58 do not repeat; only the 3 does. This happens when the denominator carries prime factors other than 2 and 5 alongside them, here 12 = 2² × 3.
What the result means
A fraction in lowest terms terminates exactly when its denominator has no prime factors except 2 and 5. If any other prime divides the denominator, the decimal repeats, and the period can be as long as the denominator's multiplicative order. That is why 1/3 and 1/6 repeat while 1/8 and 3/40 terminate. The percentage is the decimal times 100 and inherits the same repeating structure. When a decimal is rounded for display, the exact value is still the fraction, so use the fraction form for algebra and the repeating notation for exact comparisons.
Common mistakes
- Dividing the denominator by the numerator instead of the other way round.
- Entering a zero denominator and expecting infinity.
- Rounding a repeating decimal and calling it exact.
- Forgetting that a negative sign belongs in front of the whole value.
- Failing to simplify before judging whether the decimal terminates.
Assumptions and limits
- Both inputs are whole numbers within the calculator's range.
- The exact repeating cycle is found within the long-division step limit.
- The displayed decimal places are a presentation choice, not a rounding of the fraction.
- The fraction is reduced by the greatest common divisor, not by trial and error.
- A mixed number uses the absolute whole part and the reduced remainder.
Frequently asked questions
How do I know if a fraction terminates?
Reduce it first. If the reduced denominator factors into only 2s and 5s, the decimal terminates; any other prime factor makes it repeat.
What does 0.8(3) mean?
It means 0. 83333… with the digit 3 repeating forever. Parentheses mark the repeating block, also called the repetend.
Can every fraction be written as a decimal?
Yes, as either a terminating or a repeating decimal. Every fraction is a rational number, and rationals always have one of those two decimal forms.
Why does a repeating period have a maximum length?
In long division there are only denominator − 1 possible non-zero remainders, so a cycle must appear within that many steps.
What is a mixed number useful for?
It shows the whole units separately from the fractional part, which is easier to read for values above 1, such as 7/4 = 1 3/4 = 1. 75.
Sources
2026 update
How to use the professional output
This page is not just a formula box. The result is designed to be checked, compared, and taken away.
- Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
- A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
- Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.
The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.