Fraction Calculator
Add, subtract, multiply, divide and simplify fractions and mixed numbers, with every step shown.
This decimal to fraction calculator turns any decimal into a fraction in lowest terms and shows the steps: .
0.625 as a fraction
0.625 = 625/1000 = 5/8. 3 decimal places means 1000ths, and dividing the top and bottom by 125 gives lowest terms.
Write the decimal over a power of 10
0.625 has 3 decimal places, so drop the decimal point and put the digits over 1000 (1 followed by 3 zeros).
Simplify
Divide the numerator and denominator by their greatest common divisor, 125.
Check
Divide the numerator by the denominator: you get the decimal back.
Put repeating digits in parentheses, so 0.1(6) gives , or switch to fraction to decimal to find where a decimal repeats, as in .
Decimal to fraction
Plain-text formula: x = N/10^k = (N ÷ g)/(10^k ÷ g), g = gcd(N, 10^k)
Drop the decimal point to get the whole number N, put it over 10 to the power of the number of decimal places, then divide the top and bottom by their greatest common divisor. For 0.625: , and gcd(625, 1000) = 125, so .
Repeating decimal to fraction
Plain-text formula: x = (N_1 − N_2)/(10^(k + r) − 10^k)
is the number formed by all the digits up to the end of the first repeating block, ignoring the decimal point, and is the number formed by the digits before the block. For : , , k = 1 and r = 2, so .
A block that repeats from the decimal point
Plain-text formula: 0.overline(d_1d_2⋯d_r) = (d_1d_2…d_r)/(10^r − 1)
The block over the same number of nines: and .
When a fraction terminates
Plain-text formula: a/b terminates ⇔ b = 2^m · 5^n in lowest terms
Otherwise the decimal repeats. The number of digits before the repeat is the larger of m and n, and the period is the smallest r for which is divisible by the part of b that is not made of 2s and 5s.
The fraction is the exact value of the decimal you typed. A decimal that stops, such as 0.625, always gives a denominator made only of 2s and 5s; a repeating one, such as 0.1(6), gives a denominator with some other factor. The calculator works with whole numbers throughout, so inputs of up to 200 digits are converted exactly, never rounded.
In the fraction to decimal direction, the bar (vinculum) covers the digits that repeat forever: means 0.41666…. In plain text the calculator writes the same number as 0.41(6). The nearest-fraction option is the only place anything is rounded, and it shows how far the rounded fraction is from the exact one.
1. Write the decimal over a power of 10. Count the decimal places: one place means tenths, two means hundredths, three means thousandths. 0.75 has two, so .
2. Simplify. Divide the top and bottom by their greatest common divisor (GCD). gcd(75, 100) = 25, so . If you cannot spot the GCD, keep dividing by 2 and 5, the only primes in a power of 10.
3. Write a mixed number if the decimal is greater than 1. . Or convert only the decimal part, 0.125 = 1/8, and keep the 1 in front.
The same steps give and . To check, divide the numerator by the denominator: 9 ÷ 8 = 1.125.
The decimals people convert most often, with their fractions in lowest terms and as percentages. A bar marks digits that repeat.
| Decimal | Fraction | Percent |
|---|---|---|
| 0.05 | 1/20 | 5% |
| 0.1 | 1/10 | 10% |
| 0.125 | 1/8 | 12.5% |
| 0.2 | 1/5 | 20% |
| 0.25 | 1/4 | 25% |
| 0.3 | 3/10 | 30% |
| 1/3 | ||
| 0.375 | 3/8 | 37.5% |
| 0.4 | 2/5 | 40% |
| 0.5 | 1/2 | 50% |
| 0.6 | 3/5 | 60% |
| 0.625 | 5/8 | 62.5% |
| 2/3 | ||
| 0.7 | 7/10 | 70% |
| 0.75 | 3/4 | 75% |
| 0.8 | 4/5 | 80% |
| 0.875 | 7/8 | 87.5% |
| 0.9 | 9/10 | 90% |
Tape measures and rulers mark inches in halves, quarters, eighths and sixteenths, so a decimal such as 0.3 in has no exact mark. Open More options, choose 1/16, and the calculator gives the nearest sixteenth: 0.3 × 16 = 4.8, which rounds to 5, so 0.3 in ≈ 5/16 in (0.3125 in, 0.0125 in too long). Choose 1/32 or 1/64 for finer work such as machining.
One inch is exactly 25.4 mm, so the millimetre column below is exact.
| Fraction (in) | Decimal (in) | Millimetres |
|---|---|---|
| 1/16 | 0.0625 | 1.5875 |
| 1/8 | 0.125 | 3.175 |
| 3/16 | 0.1875 | 4.7625 |
| 1/4 | 0.25 | 6.35 |
| 5/16 | 0.3125 | 7.9375 |
| 3/8 | 0.375 | 9.525 |
| 7/16 | 0.4375 | 11.1125 |
| 1/2 | 0.5 | 12.7 |
| 9/16 | 0.5625 | 14.2875 |
| 5/8 | 0.625 | 15.875 |
| 11/16 | 0.6875 | 17.4625 |
| 3/4 | 0.75 | 19.05 |
| 13/16 | 0.8125 | 20.6375 |
| 7/8 | 0.875 | 22.225 |
| 15/16 | 0.9375 | 23.8125 |
| 1 | 1 | 25.4 |
Every repeating decimal to fraction conversion uses the same idea. Call the number x. Multiply by a power of 10 that moves the decimal point one full repeating block to the right, and subtract so the endless tails cancel. For 0.8 repeating: , and , so and .
If some digits come before the repeat, first multiply to move past them. For 0.4777…: and , so and . For 2.666…, convert 0.666… = 2/3 and add the 2: .
Shortcut: when the block starts right after the decimal point, write the block over the same number of nines. . The table lists the repeating decimals that come up most.
| Fraction | Decimal | Repeating block |
|---|---|---|
| 1/3 | 1 digit | |
| 2/3 | 1 digit | |
| 1/6 | 1 digit | |
| 5/6 | 1 digit | |
| 1/7 | 6 digits | |
| 1/9 | 1 digit | |
| 1/11 | 2 digits | |
| 1/12 | 1 digit | |
| 1/13 | 6 digits |
Switch to Fraction → decimal and this page works as a fraction to decimal calculator. Divide the numerator by the denominator: and . A mixed number such as keeps its whole part: 2.375.
Whether the decimal stops depends only on the denominator in lowest terms. If its prime factors are just 2s and 5s, it stops: 3/40 = 0.075. Any other prime makes it repeat: 1/12 = 0.08(3) and 1/7 = 0.(142857). The calculator shows the repeating block, its length, and a long-division table where you can watch a remainder come back.
Typing 0.333 for one third. 0.333 stops after three digits, so it is exactly . Only the repeating decimal 0.(3) equals . The calculator warns you when a typed decimal ends in a run of one digit, and the same goes for a rounded display such as 0.6667, which is 6667/10000, not 2/3.
Putting the repeat in the wrong place. 0.1(6) = 0.1666… = 1/6, but 0.(16) = 0.161616… = 16/99. Only the digits that really repeat go in the parentheses.
Stopping before lowest terms. 0.75 = 75/100 is correct but not simplified; divide by the GCD, 25, to get 3/4. The calculator shows the unsimplified fraction too, so you can match a textbook step.
Losing the sign or the whole number. −1.25 = −5/4 = −1 1/4. Convert the decimal part, keep the whole number, and put the minus sign on the whole result.
Yes. With , , and subtracting gives , so x = 1 exactly. Another way to see it: , and three times that is . Every terminating decimal has a twin like this; for example, 0.25 = 0.24(9).
The fraction calculator does arithmetic with the fractions you get here, the GCD calculator finds the greatest common divisor used to simplify, and the guide to fractions and exact results explains how the scientific calculator recognizes repeating decimals.
Write 2.4(18), that is 2.41818…, as a fraction in lowest terms.
Answer: .
Write the digits over 10, 100, 1000 or whichever power of 10 matches the number of decimal places, then simplify by the greatest common divisor. For 0.625: 625/1000, and dividing both by 125 gives 5/8.
If it stops after three digits, 0.333 = 333/1000, which is already in lowest terms. If the 3s go on forever, 0.333… = 1/3. Enter 0.(3) in the calculator for the repeating version.
8/9. With x = 0.888…, 10x − x = 8.888… − 0.888… = 8, so 9x = 8 and x = 8/9. Any single repeating digit d gives d/9.
8/3, or 2 2/3 as a mixed number. The repeating part 0.666… is 6/9 = 2/3, and 2 + 2/3 = 8/3.
Multiply by a power of 10 that shifts one full repeating block past the decimal point, subtract the original so the repeating part cancels, then solve. For 0.(3): 10x − x = 3.(3) − 0.(3) = 3, so 9x = 3 and x = 1/3.
Divide the numerator by the denominator. 1/4 = 1 ÷ 4 = 0.25 and 5/8 = 0.625. If a remainder comes back during the long division, the digits repeat from that point: 1/12 = 0.08(3).
Reduce it to lowest terms and factor the denominator. If its only prime factors are 2 and 5 the decimal terminates (3/40 = 0.075); any other prime factor makes it repeat (1/12 = 0.08(3)).
Multiply the decimal by 16 (or 8, 32 or 64), round to the nearest whole number, and put it over 16. 0.3 × 16 = 4.8 ≈ 5, so 0.3 in ≈ 5/16 in. The calculator does this under More options and shows the error.
Yes, exactly. The algebra gives 9x = 9, so x = 1. Enter 0.(9) to see the steps.
Add, subtract, multiply, divide and simplify fractions and mixed numbers, with every step shown.
LCM and GCF of up to 10 numbers with steps: multiples, prime factors, Euclid’s algorithm and a coprime check.
Percent of a number, what percent, reverse percentages, change, increase, decrease and difference, with steps.
Count and round sig figs, or add, subtract, multiply and divide with the sig fig rules.
Type or tap expressions with exact fractions, memory, variables, constants and complex mode.
Learn more: Why 0.333… and 1/3 are the same number, and when to keep the fraction: exact vs decimal answers. The scientific calculator converts both ways too, as the fractions manual page shows.
Results are calculated in your browser with methods checked by automated tests, and are intended for learning and general use. For engineering, medical, financial, legal or safety-critical decisions, verify important values independently and follow the rounding rules your work requires. How accurate are these results?