Guide
How to Convert Fractions to Decimals and Decimals to Fractions
A fraction is a division. 1/4 means 1 divided by 4, which terminates as 0.25. 1/3 never terminates; the digit 3 repeats. Exact conversion and rounded display are different jobs. The fraction to decimal calculator and decimal to fraction calculator keep those jobs labeled.
Fractions as division
Long division of integers produces decimal digits. Remainders either hit zero (terminating) or repeat a remainder already seen (repeating). Tracking remainders with BigInt avoids turning a huge numerator into a Number first.
Decimal place values
0.375 is 3 tenths, 7 hundredths, 5 thousandths: 375/1000. Place value is a power of ten in the denominator.
Terminating decimals
1/4 = 0.25, 1/8 = 0.125, −1.25 = −5/4. A terminating decimal with k digits after the point is an integer over 10^k, then reduced.
Repeating decimals
1/3 = 0.(3), 1/6 = 0.1(6), 1/7 = 0.(142857), 0.(27)=3/11, 0.(9)=1, 0.0(3)=1/30. Parentheses mark the repeating block. If a period is too long for the remainder-tracking limit, the tool says the expansion is truncated rather than inventing a fake period.
Long division
For 1/6: 10÷6=1 remainder 4, 40÷6=6 remainder 4, so after one non-repeating 1 the 6 repeats. That is 0.1(6), which equals 1/6, not 0.16.
Converting terminating decimals to fractions
0.125 = 125/1000 = 1/8. 0.375 = 375/1000 = 3/8. 0.333 = 333/1000, which is not 1/3. That last sentence is the whole point of separate modes.
Converting repeating decimals
With whole part w, non-repeating digits A of length m, repeating digits B of length n: D = 10^m(10^n−1), N = wD + A(10^n−1) + B. For 0.1(6), m=1, n=1, A=1, B=6, N=15, D=90, 15/90=1/6.
Exact equality versus approximation
Use = for exact values: 1/4 = 0.25. Use ≈ for rounded values: 1/7 ≈ 0.142857 to six places. The equals sign is not used for a rounded truncation.
Rounding
Precision options of 2, 4, 6, 10, or 20 places round the expansion. Rounding does not change the stored fraction.
Comparing decimal and fraction representations
0.333 and 0.333… are different exact values: 333/1000 versus 1/3. Cross-products show 333×3 = 999 and 1×1000 = 1000, so 0.333 < 1/3. The compare fractions tool uses those products, not floats.
Worked terminating and repeating conversions
Write 2.5 as a fraction: 25/10 = 5/2. Write 0.04 as 4/100 = 1/25. Write −0.8 as −8/10 = −4/5. Trailing zeros in 0.250 still mean 250/1000 = 1/4, the same as 0.25. Leading zeros in 0.025 mean 25/1000 = 1/40; the zeros count toward k.
Repeating 0.(12): m=0, n=2, A empty, B=12, D=99, N=12, 12/99=4/33. Repeating 0.2(3): m=1, A=2, n=1, B=3, D=10×9=90, N=2×9+3=21, 21/90=7/30. Repeating 3.(0) is just the integer 3 if you insist on a repeating zero, because N=3×9+0=27, D=9, 27/9=3. Repeating 0.0(9) uses m=1, A=0, n=1, B=9, N=9, D=90, 9/90=1/10, which equals 0.1, consistent with 0.0999…
From fraction to decimal, 3/8 = 0.375 terminating. 2/11 = 0.(18). 5/6 = 0.8(3). 7/12 = 0.58(3). Those expansions come from remainder lists, not from rounding 0.583333 until it looks pretty. If you round 7/12 to two places you get 0.58, which is 58/100=29/50, not equal to 7/12. The calculator therefore prints ≈ 0.58 when precision is 2, and = 0.58(3) for the exact repeating form.
Place-value table for 0.375
Three tenths is 3/10, seven hundredths is 7/100, five thousandths is 5/1000. Common denominator 1000 gives 300/1000 + 70/1000 + 5/1000 = 375/1000. Reduce by 125 to 3/8. The table is the same idea as writing one integer over 10^k.
Common conversion mistakes
Reading 0.333 as one third, stopping a repeat early, and treating a rounded printout as exact are the frequent errors. Work three checks: 0.125=1/8, 0.(3)=1/3, 0.333=333/1000.
Division tableau for 1÷7 producing 142857 with a remainder repeating back to 1, bar over the six-digit block.
FAQ
- Why does 0.(9) equal 1?
- N=9, D=9, 9/9=1. That is algebraic identity, not a rounding trick.
- Can every fraction become a repeating or terminating decimal?
- Yes, in base ten, because remainders are finite in 0…d−1.
- Should I memorize 1/7?
- Optional. The calculator will expand it; understanding remainder repetition matters more.
Money uses two decimal places because a cent is 1/100 of a currency unit. $1.25 is 5/4 dollars exactly. That terminating conversion is the same 10^k rule as 0.125 = 1/8, only with k=2.
Scientific displays sometimes show 0.333333 and stop. That printout is a rounding of 1/3 or exactly 333333/1000000, depending on whether the machine truncated. Fraction Harbor refuses to guess. You choose terminating or repeating mode, so 0.333 stays 333/1000 until you explicitly enter a repeating 3. That policy is stricter than many handheld calculators, and it is the point of an exact converter.
When you convert a repeating decimal by hand, write m and n first so leading zeros are not dropped. The digit string “03” has length 2, even though BigInt(“03”) equals 3. The formulas use the length, not the integer’s appearance. That is why 0.0(3) becomes 1/30 rather than 1/3. After you obtain N/D, simplify, then optionally expand back to a decimal to confirm the bar sits over the same digits.
Return to addition or open the practice page.