Decimal to Fraction Calculator: Exact & Repeating

Decimal to Fraction Calculator

Convert any terminating or repeating decimal into an exact fraction, a mixed number, and a fully simplified form. See the place-value math, the repeating-decimal algebra, and the greatest common divisor reduction step by step.

🔢Real Decimal Presets

📝Decimal Inputs

Enter a number like 0.375, 2.25, or -0.6. A leading minus is allowed.

Only used when type is repeating. 0.333 with 3 repeating means 0.3 recurring.

Only used when type is round to nearest denominator, ideal for inches.

Fraction 0 simplified lowest terms
Mixed number 0 whole and proper part
Improper fraction 0/1 single top over bottom
Simplification GCD 1 divides top and bottom

🧮Method Snapshot

dDecimal value
kDecimal places
10^kBase denominator
GCDReduction factor

📊Common Decimal to Fraction Reference

DecimalFractionMixed / NotesType
0.51/2Half, exactTerminating
0.251/4Quarter, exactTerminating
0.753/4Three quartersTerminating
0.1251/8One eighthTerminating
0.21/5One fifthTerminating
0.11/10One tenthTerminating
0.333...1/30.3 recurringRepeating
0.666...2/30.6 recurringRepeating
0.1666...1/60.16 with 6 recurringRepeating

📏Inch Fraction Reference

SixteenthsSimplifiedDecimal InchMillimeters
1/161/160.06251.588 mm
2/161/80.1253.175 mm
3/163/160.18754.763 mm
4/161/40.256.350 mm
6/163/80.3759.525 mm
8/161/20.512.700 mm
10/165/80.62515.875 mm
12/163/40.7519.050 mm
15/1615/160.937523.813 mm

🔁Repeating Decimal Examples

Repeating DecimalRepeat BlockAlgebraFraction
0.3 recurring33 / 91/3
0.6 recurring66 / 92/3
0.9 recurring99 / 91
0.09 recurring099 / 991/11
0.12 recurring1212 / 994/33
0.142857 rec.142857142857 / 9999991/7
0.16 (6 rec.)6(16-1) / 901/6
0.83 (3 rec.)3(83-8) / 905/6

🗂Denominator Rounding & Comparison Grid

DecimalNearest 1/2Nearest 1/4Nearest 1/8Nearest 1/16Nearest 1/32
0.1001/8 (0.125)1/82/163/32
0.301/21/42/85/1610/32
0.441/21/23/87/1614/32
0.511/21/24/88/1616/32
0.631/25/8 (0.625)5/810/1620/32
0.7713/46/812/1625/32
0.8817/8 (0.875)7/814/1628/32
0.96118/815/1631/32

Full Formula Breakdown

Split the numberSeparate the whole part w from the fractional part f. For 2.25, w = 2 and f = 0.25. A negative sign is stored and re-applied at the end.
Terminating ruleCount decimal places k in f. Numerator = f × 10^k and denominator = 10^k. For 0.25, k = 2, so 25 / 100.
Repeating (all recur)For 0.abc repeating, numerator = the repeat block and denominator = 10^r – 1 (r nines). 0.3 recurring gives 3 / 9.
Repeating (mixed)With n non-repeating digits then r repeating, fraction = (all digits – non-repeating digits) / (10^(n+r) – 10^n). 0.16 with 6 recurring gives (16 – 1) / 90 = 1/6.
Nearest denominatorNumerator = round(d × D) and denominator = D. Round 0.63 to 1/16: round(0.63 × 16) = 10, so 10/16 = 5/8.
Greatest common divisorUse Euclid: gcd(a, b) = gcd(b, a mod b). Divide top and bottom by the GCD to reach lowest terms. gcd(25, 100) = 25 so 25/100 = 1/4.
Mixed numberwhole = trunc(numerator / denominator) and remainder = numerator – whole × denominator. The proper part is remainder / denominator.

📋Denominator Family Reference

DenominatorStep SizeBest ForTerminates?
2, 4, 8, 16, 320.5 down to 0.03125Inches, wrenches, woodYes, powers of 2
10, 100, 10000.1, 0.01, 0.001Money and metricYes, powers of 10
3, 6, 9Thirds and sixthsRepeating decimalsNo, they recur
7, 11, 13Long repeat blocksNumber theoryNo, long cycles
5, 20, 25, 50Fifths and cleaner tenthsPercent style valuesYes, factor of 10

💡Practical Fraction Tips

Terminating tip: Only decimals whose reduced denominator has just 2s and 5s as prime factors end cleanly. Anything with a 3, 7, or other prime in the bottom will repeat, so switch the type selector to repeating.
Repeating tip: The number of nines in the denominator equals the length of the repeating block. One repeating digit uses 9, two uses 99, and three uses 999 before you reduce with the GCD.

Here you are, standing in home improvement aisle with a length of lumber in hand. You want it cut exactly to size. The design involve a fraction. But your digital tape measure returned a decimal. Now, your brain must quickly perform some math to determine which tick mark on your physical saw blade map to this series of digits.

The two systems don’t naturaly speak the same language and this is a common source of frustration among DIYers. One system is continuous and smooth; the other is discrete and chunky. Crossing that divide isn’t a matter of guesswork. You need a trustworthy way of translating from one language to the other, retaining precision during the process.

How to Switch Between Decimals and Fractions

But this is all the problem: Fractions versus decimals describe numbers different. Ratios (fractions) feel inherently more intuitive in the way they’re constructed, especially in cooking or construction when it makes physical sense to half or quarter a measurement. Powers of ten (decimals) work well because they align with our base-ten number system, but make for awkward denominators when translated direct.

Once you type in your value, the calculator does the math for you, spare yourself the hard work of having to find common denominator by hand. It just shows you exactly how many parts go into the whole. This eliminate the confusion. The simple ones are terminating decimals, which stop at some point with a finite number of places in them. Their denominators is made up entirely of prime factors of either two or five.

For example 0.25 or 0.5 represent quarters and halves respectively. This makes sense because those values match common ruler markings. Just count the numbers after the decimal place and know that each represents one less power of ten and then simplify what you get. That’s mechanical, it always works out the same way. Those denominators divides equally into powers of ten, so it is not by accident.

Now, if there are any other prime numbers besides two and five in the denominator, such as seven, eleven, or three, it’s going to have a repeating decimal. This say something completely different. It means you’re looking at an infinite loop in decimal notation that’s pretty ugly to write out but is really beautiful from a math perspective. One third is simply expressed as a repeating number like 0.3333. You can’t divide ten into three cleanly, so it keeps looping forever.

Knowing this will help you select the right input type. This ensures you get an accurate result instead of a rounded one that could slightly mess up your calculations.

Most folks err and rush here: simplifying. Yes, turning.25 into 25/100 is technically correct. But what if you’re attempting to measure wood? In that case, 1/4 is what you really need…because it tells you exactly which line to cut on. Reducing a fraction requires dividing the top number (numerator) and the bottom number (denominator) by their greatest common divisor, until no further reduction occurs.

Why? Because simpler fractions is more easily applied and visualized in the real world. Sure, maybe there’s a mathematically-sound, complex improper fraction, but when you’re holding a tape measure with shaking hands, it can be practicaly hard to use.

And finally, right depends on context. When baking, for example, precision can be critical; rounding 1/3 up to a decimal makes all the difference in the world to the final texture. But in carpentry, we frequently round to the closest sixteenth of an inch because our tools aren’t precise enough to go any further. Rounding appropriately to the denominator that suits your project avoids over-engineering your measurements.

If your saw blade is half an inch wide, why bother with thousandths? Precision in your calculations should matches the capabilities of your tools. It is a smart way to save time and wasted materials.

On the page, there are also reference tables that you can use as a quick lookup for commonly used conversions. You can use them if you’re double-checking your own work or if you just want to get a feel for how things go together without having to do the math from scratch each time. If you see 0.125 over and over again and it keeps turning into 1/8, you’ll be able to remember that in the future without needing to grab your calculator (or perhaps you won’t have one nearby).

There is nothing like seeing numbers related to real things we experience everyday. That’s when those patterns last. And when you can easily switch between these two forms, you begin to perceive quantity different. What were once abstract digits become real quantities you can hold in your hands. Instead of dreading those long chains of zeroes and the recurring triples, they becomes nothing more than easily digestible relationships with one another.

This ability will give you confidence with all calculations… Whether you are building a shelf, splitting a bill, or simply wondering why some numbers act strangely. It’s about control. If you know how numbers work, you don’t need blind faith to ensure your cuts is accurate; you know exactly where to draw the line because you should of put in the effort to discover its location.

Decimal to Fraction Calculator: Exact & Repeating