Decimal to fraction
Write the decimal over a power of ten and reduce. The decimal 0.375 is 375/1000. Dividing top and bottom by their greatest common divisor, 125, gives 3/8.
Sometimes a simpler fraction is more useful than an exact one. Choose a largest denominator and the tool finds the closest fraction that fits. With a limit of 8, the decimal 0.3 becomes 2/7 (about 0.2857), the nearest fraction whose denominator is 8 or less.
Fraction to decimal
Divide the numerator by the denominator: 3 ÷ 8 = 0.375. Multiply by 100 for the percentage, 37.5%. Some fractions never end as decimals. One third is 0.3333… with the 3 repeating forever, so the display is rounded.
Common fractions
| Fraction | Decimal | Percent |
|---|---|---|
| 1/16 | 0.0625 | 6.25% |
| 1/8 | 0.125 | 12.5% |
| 1/4 | 0.25 | 25% |
| 1/3 | 0.3333… | 33.33% |
| 3/8 | 0.375 | 37.5% |
| 1/2 | 0.5 | 50% |
| 5/8 | 0.625 | 62.5% |
| 2/3 | 0.6667… | 66.67% |
| 3/4 | 0.75 | 75% |
| 7/8 | 0.875 | 87.5% |
Worked example: Converting 0.375 and repeating 0.3333 to fractions
Here is how exact terminating decimals and repeating decimals behave when converted to fractions:
- Terminating decimal `0.375` to fraction: Because there are 3 decimal places, write `375 / 1,000`. The greatest common divisor of 375 and 1,000 is `125` (`375 ÷ 125 = 3`, `1,000 ÷ 125 = 8`), yielding the exact fraction 3/8 (or `37.5%`).
- Workshop measurement `2.625` inches: Separate the whole number `2` and convert `.625 = 625 / 1,000`. Divide top and bottom by `125` to get `5/8`, giving 2 5/8 inches (`21/8` as an improper fraction).
- Fraction `7/16` to decimal: Divide `7 ÷ 16 = 0.4375` (`43.75%`), a standard drill-bit and wrench increment.
Limits and what this tool cannot do
- Repeating decimals typed as rounded strings: If you type `0.33` (two threes), its exact mathematical value is `33/100`, whereas typing `0.333333` approximates `1/3` depending on denominator search depth.
- Irrational numbers (`π`, `√2`) have no exact fraction: Irrational numbers cannot be written as a ratio of two integers; the converter returns a rational approximation within standard denominator bounds (such as `355/113` or `314159/100000`).
- Extremely large 15+ digit denominators: IEEE 754 double-precision numbers carry 53 bits of significand (~15–17 decimal digits), so fractions with denominators in the quadrillions lose last-digit precision.