Convert a decimal to a fraction

Edit the example and calculate.

Type a terminating decimal, with a point or a comma, and you get its fraction in lowest terms: 0.125 = 125/1000 = 1/8. The calculation uses the digits exactly as you type them, so 0.1 gives exactly 1/10 and 0.333 gives 333/1000, not 1/3.

Example: 0.125 = 1/8. Use a period for decimals; commas may group thousands (1,000.5).

A mixed-number form is included when applicable.

Your result

Enter the values and select Convert.

Worked example

Terminating decimal to fraction

125 thousandths is 125/1000; divide by 125 to get 1/8.

0.125 = 125/1000 = 1/8

How is this result checked?Report an errorHow we handle corrections

Key facts

Denominator
It has one zero for each decimal place: 0.6 has one place, so it equals 6/10 = 3/5.
Reduction
Divide by the GCF: 0.18 = 18/100, GCF(18, 100) = 2, and 9/50 is left.
Sign
It stays in the result: −0.9 = −9/10.
Mixed number
An improper fraction can also be read as a mixed number: 1.75 = 7/4 = 1 3/4.
Separator
The calculator accepts a point or a comma: 3.5 and 3,5 both give 7/2.

Formula

x = (x × 10ⁿ)/10ⁿ, where n = number of decimal places of x

Example:0.36 = (0.36 × 100)/100 = 36/100 = 9/25

Then divide the numerator and denominator by their GCF, here GCF(36, 100) = 4.

Published

How to solve it

  1. Count the decimal places.
  2. Write the number without the decimal point as the numerator.
  3. Write the denominator as 1 followed by as many zeros as decimal places.
  4. Simplify the fraction.
Example

0.35 = 35/100 = 7/20

Result: 7/20

Common mistake:Wrong: 0.05 = 5/10.Right: 0.05 = 1/20.0.05 has two decimal places, so the denominator is 100: 5/100 = 1/20, not 5/10.

To turn a decimal into a fraction, write its digits without the decimal mark over a 1 followed by as many zeros as there are decimal places, then reduce. Below you will find one complete case, the decimals that change the calculation, and the mistake of taking 0.333 for 1/3.

Worked example: 2.35

A board is 2.35 meters long. What fraction of a meter is that length, in lowest terms?

  1. Count the decimal places. 2.35 has two, so the denominator is 100.
  2. Write the digits over 100. 2.35 = 235/100.
  3. Divide by the GCF. 235 = 5 × 47 and 100 = 2² × 5², so GCF(235, 100) = 5, and 235 ÷ 5 = 47 and 100 ÷ 5 = 20.

Result: 2.35 = 47/20 of a meter, or 2 7/20 as a mixed number.

Check: 47 ÷ 20 = 2 with remainder 7, and 7/20 = 0.35. Both forms give 2.35.

Why it works and why you reduce

Each decimal place has a place value: in 2.35 the 3 is three tenths and the 5 is five hundredths. Added together, 2 + 3/10 + 5/100 = 235/100, which is exactly what you get by writing the digits over 100. That is why the denominator is always 10, 100, 1000… and never any other number.

That fraction is correct, but it is rarely in lowest terms. Dividing the numerator and denominator by their greatest common factor (GCF, also called the GCD or HCF) reduces it without changing its value; it is the same step used to simplify fractions. If you need the opposite direction, multiplying the top and bottom by the same number to build up to an equivalent fraction, see equivalent fractions.

The conversion works with the written digits, not with floating-point numbers, which store most decimals only approximately. That is why 0.1 + 0.2 = 1/10 + 2/10 = 3/10 comes out exact, while in a spreadsheet or a programming language the result can carry a tiny remainder. The article on why 0.1 + 0.2 is not 0.3 on a computer explains that effect.

Cases that change the calculation

Four decimals and what is special about each
DecimalCalculationWhat sets it apart
−1.6−16/10 = −8/5The sign carries over to the fraction
0.044/100 = 1/25Zeros after the point count as places
12.5125/10 = 25/2It gives an improper fraction; it is also 12 1/2
0.0000/1 = 0Numerator zero, value zero

In 0.04 the zero right after the point takes up a place, which is why the denominator is 100 and not 10. If you remove it, 0.4 is 2/5, a number ten times larger. The sign plays no part in the reduction: you work with the absolute value and put the sign back at the end.

Common decimals as fractions

On this page decimals use a point, and the calculator also accepts a comma, as in 0,75. The table gathers the decimals people look up most, with the fraction before and after reducing.

Decimal Over a power of 10 Fraction in lowest terms
0.05 5/100 1/20
0.125 125/1000 1/8
0.2 2/10 1/5
0.25 25/100 1/4
0.375 375/1000 3/8
0.4 4/10 2/5
0.6 6/10 3/5
0.625 625/1000 5/8
0.75 75/100 3/4
0.8 8/10 4/5

If the reduced denominator has only the factors 2 and 5, the decimal terminates; with a 3 or a 7 it repeats, as the guide to fractions that give terminating decimals explains. To compare two of these values without converting them by hand, the compare fractions page puts them in order by size.

When the decimal is not terminating or not exact

The calculator accepts terminating decimals of up to 100 digits and rejects those that mix a point and a comma. For the other cases there is another page:

If you want to review what decimal fractions are and how to read them, the guide to decimal fractions explains them from scratch. For place value, OpenStax covers decimals (accessed 10/16/2026).

Frequently asked questions

Why do 0.50 and 0.5 give the same fraction?

Because a zero to the right of the last digit does not change the value: 0.50 = 50/100 = 1/2, just like 0.5 = 5/10 = 1/2. Both ways of writing it reduce to the same fraction.

Can I type 1,234.56 with a thousands separator?

No. When a comma and a point appear in the same number, the entry is rejected, because the calculator cannot tell which one is the decimal mark. Type 1234.56 or 1234,56 and the result is 30864/25 (123456/100 before reducing). A comma on its own is always a decimal mark: 1,234 is read as 1234/1000 = 617/500.

What fraction do I get for 1.000?

You get 1: a point on its own is always read as a decimal mark, never as a thousands separator, so 1.000 means one and zero thousandths, 1000/1000 = 1. If you meant one thousand, type 1000 with no separator and the result is 1000.

Next step

Convert a fraction to a decimal Turn a fraction or mixed number into a decimal and see whether it terminates or repeats.

YOUR CALCULATOR, CLOSE AT HAND

Save your calculator

Open your browser menu and choose “Install app” or “Add to Home Screen”. You can also bookmark this page.