Decimal Calculator: Turn Any Decimal Into a Fraction in Seconds
Decimals such as 0.75 and 1.625 appear in money, measurements and test scores. This decimal calculator turns a decimal into a fraction, a fraction into a decimal, and works out all four operations without binary-float errors.
The tool includes five modes: To a Fraction converts a decimal into a fraction, To a Decimal turns a fraction into a decimal, Add, Subtract, Multiply and Divide works out the four operations, Place Value and Expanded Form reads every digit at its place, and Repeating Decimals to Fractions turns a repeating decimal into a fraction. This decimal calculator lets you convert numbers and calculate with them without working through every decimal place by hand. The Rounding Calculator rounds numbers and the Scientific Notation Calculator handles powers-of-ten form; this page converts decimals and computes with them.
Using the Decimal Calculator
This decimal calculator has five modes, each for a different conversion or calculation.
To a Fraction
Enter a decimal; the tool writes it over 1, multiplies top and bottom by 10 for every digit after the point, and reduces the result to lowest terms. For example, 0.75 becomes 3/4.
To a Decimal
Enter a numerator and a denominator; the tool divides and returns the decimal, marking any repeating digit. For example, 3/4 becomes 0.75.
Add, Subtract, Multiply and Divide
Enter two decimals and pick an operation; the tool works out the sum, difference, product or quotient from typed digits. For example, 5.8 + 2.35 = 8.15.
Place Value and Expanded Form
Enter a decimal; the tool shows the decimal place value of every digit in the number and writes the expanded form. For example, 45.36 becomes 40 + 5 + 0.3 + 0.06.
Repeating Decimals to Fractions
Enter a repeating decimal and say how many digits repeat; the tool uses algebra to return the fraction. For example, 0.333… becomes 1/3.
Mode Comparison
| Mode | What you enter | What you get |
|---|---|---|
| To a Fraction | A decimal | A fraction in lowest terms |
| To a Decimal | A numerator and a denominator | A decimal, terminating or repeating |
| Add, Subtract, Multiply and Divide | Two decimals and an operation | A sum, difference, product or quotient |
| Place Value and Expanded Form | A decimal | Every digit at its place value |
| Repeating Decimals to Fractions | A repeating decimal | A fraction in lowest terms |
Worked Examples
| Mode | Example | Result |
|---|---|---|
| To a Fraction | 0.75 | 3/4 |
| To a Decimal | 3/4 | 0.75 |
| Add, Subtract, Multiply and Divide | 5.8 + 2.35 | 8.15 |
| Place Value and Expanded Form | 45.36 | 40 + 5 + 0.3 + 0.06 |
| Repeating Decimals to Fractions | 0.333… | 1/3 |
What Is a Decimal
A decimal is a base-10 positional number: each digit's place is ten times the digit to its right, and the decimal point separates the whole-number part from the fractional part. This decimal calculator reads every digit at its place value, from tens down to thousandths. In 45.6 the 4 is in the tens place, the 5 in the ones place and the 6 in the tenths place. The first three places to the right of the point are tenths (1/10), hundredths (1/100) and thousandths (1/1000): 0.4 = 4/10, 0.04 = 4/100, 0.004 = 4/1000.
Turning a Decimal Into a Fraction
To convert decimals to fractions, write the decimal over 1, multiply the top and bottom by 10 for every digit to the right of the decimal point, then simplify by the greatest common divisor.
Writing a decimal as a fraction starts with the decimal over 1. For example:
- 0.7 as a fraction is 7/10.
- 1.625 as a fraction is 1 5/8.
- 0.01 as a fraction is 1/100.
- .67 as a fraction is 67/100.
Worked Examples
Example 1: 0.75 = 75/100 = 3/4. GCD = 25.
Example 2: 0.625 = 625/1000 = 5/8. GCD = 125.
Example 3: 0.45 = 45/100 = 9/20.
Example 4: 0.125 = 125/1000 = 1/8.
This decimal calculator follows these steps and reduces every answer to lowest terms.
Fraction to Decimal
This decimal calculator divides the numerator by the denominator and marks any repeating digit. Divide 3 by 4 to get 0.75, and divide 5 by 9 to get 0.555… with the 5 repeating forever. A longer division gives 169/40 = 4.225, and a mixed number gives 4 5/13 ≈ 4.3846, which rounds to 4.4 to the nearest tenth. Other results repeat too: 0.285714… = 2/7 and 0.4545… = 5/11.
Repeating Decimals
A terminating decimal has a finite number of digits. A fraction in lowest terms produces a decimal that terminates exactly when its denominator has only 2s and 5s as prime factors.
Examples of decimals that terminate:
- 1/8 = 0.125
- 1/320 = 0.003125
- 7/8 = 0.875
- 3/50 = 0.06
A repeating decimal to fraction conversion uses algebra: let x equal the decimal, multiply by 10 for each repeating digit, subtract, and solve.
Examples of repeating decimals:
- 1/3 = 0.333…
- 1/9 = 0.111…
- 1/6 = 0.1666…
- 1/11 = 0.0909…
Converting a Repeating Decimal Using Algebra
For 0.333…:
x = 0.333…
10x = 3.333…
Subtract the first equation from the second:
10x − x = 3.333… − 0.333…
9x = 3
x = 3/9 = 1/3
An Advanced Example
For 0.7585858…:
x = 0.7585858…
The repeating block is 58, with one non-repeating digit after the decimal point. Multiply by 10 to move past the non-repeating digit, then by 1000 to align the repeating blocks.
10x = 7.585858…
1000x = 758.585858…
Subtract:
990x = 751
x = 751/990
This decimal calculator shows the repeating pattern instead of rounding it away.
The Four Operations
This decimal calculator computes from typed digits, so 0.1 + 0.2 is exactly 0.3.
Add
To add decimals, line up the decimal points vertically, pad with trailing zeros, and add as whole numbers. For example, 5.8 + 2.35 = 8.15 (5.80 + 2.35), and 3.8 + 4.37 = 8.17.
Subtract
To subtract decimals, line up the decimal points the same way and subtract as whole numbers. For example, 9.5 − 3.25 = 6.25.
Multiply
To multiply decimals, multiply as whole numbers, then place the point so the product has as many decimal places as the two factors combined. For example, 2.5 × 1.5 = 3.75 (25 × 15 = 375, point 2 places left), and 12.75 × 3.2 = 40.8 exactly. Plain JavaScript gives 12.75 × 3.2 = 40.800000000000004 and 0.1 + 0.2 = 0.30000000000000004, while the exact decimal answers are 40.8 and 0.3.
Divide
To divide decimals, move the point in the divisor until it is whole, move the point in the dividend the same number of places, then divide as whole numbers. For example, 6.75 ÷ 1.5 = 4.5 (both ×10 gives 67.5 ÷ 15), 5.39 ÷ 1.1 = 4.9, 155.2 ÷ 25 = 6.208, and 15.7 ÷ 0.1 = 157. Division by zero is undefined: the tool shows a clear error, never NaN. A division that does not end is written to a chosen number of decimal places.
Reading Place Value
This decimal calculator breaks every number into its place values. In 45.36 the 4 is 4 tens, the 5 is 5 ones, the 3 is 3 tenths and the 6 is 6 hundredths, so the expanded form is 40 + 5 + 0.3 + 0.06. In 0.625 the 6 is 6 tenths, the 2 is 2 hundredths and the 5 is 5 thousandths, so 0.625 = 6/10 + 2/100 + 5/1000. In 4,279.386 the 8 sits in the hundredths place, and in 23.7456 the digits after the point are 7 tenths, 4 hundredths, 5 thousandths and 6 ten-thousandths.
Decimal to Percent
To turn a decimal into a percent, multiply by 100: 0.75 = 75%, 0.45 = 45% and 0.125 = 12.5%. To turn a percent back into a decimal, divide by 100: 45% = 0.45. The Percentage Calculator owns percent work; this page only shows the values.
What the Decimal Calculator Does Not Solve
In version 1, this tool does not count significant figures, round answers to a chosen precision, add or subtract fractions, or write very large or small decimals in powers-of-ten form. Counting significant figures belongs to the Significant Figures Calculator, rounding belongs to the Rounding Calculator, and powers-of-ten form belongs to the Scientific Notation Calculator.
Why Your Results May Differ
- A logarithm example on another site claims log₃(1000) = 10, but log₃(1000) ≈ 6.2877; 10 is log₁₀(1000), the wrong base, and log₃(2.123) ≈ 0.685, not log₃(2123) ≈ 6.97.
- A conversion guide says to multiply by 10 for every digit to the left of the decimal point, but the multiplier counts the digits to the right of the point: 0.55 has two digits after the point, so ×100.
- A teaching page simplifies 124/1000 to 312/50, but 124/1000 = 31/250 (divide by 4); 312/50 = 6.24, a different number entirely.
- A worked solution shows (0.725 × 100)/(1 × 1000) = 725/1000, but multiplying the top by 100 and the bottom by 1000 changes the value; multiply top AND bottom by 1000 to get 725/1000 = 29/40.
- A printed solution writes 3 ÷ 22 = 0.75, but 3 ÷ 22 = 0.13636…; the correct step is 3 ÷ 4 = 0.75.
- A community answer claims 100/100 = 100.0, but 100/100 = 1.
- The same answer claims 3/8 = 0.038, but 3/8 = 0.375, off by exactly 10×.
- Another community answer concludes 0.83 as a decimal is 0.53, but 0.83 is already a decimal, and 0.83 ≠ 0.53.
Questions Students Ask While Solving
These questions come from real students, and this decimal calculator answers each one.
A shopkeeper gives 0.75 meter of cloth per customer. If he has 15 meters, how many customers can he serve completely? 0.75 = 3/4, so 15 ÷ (3/4) = 15 × 4/3 = 20 customers.
Write as a decimal: 100/100, 3/8, 29/100, 29/1000. The answers are 1, 0.375, 0.29 and 0.029. The first posted answer on the thread got two of them wrong, which is why two of them appear in Why Your Results May Differ below.
If X = 0.7585858…, what fraction is X? X = 751/990: the repeating part 0.0085858… equals 85/9900, and 3/4 + 85/9900 = 751/990.
What is the decimal form of 7/2 + 32.5 + 1.245 + 3/4? Convert first: 7/2 = 3.5 and 3/4 = 0.75, then align the points: 3.500 + 32.500 + 1.245 + 0.750 = 37.995.
Decimals in Real Life
Money runs on decimals: $12.45 is 12 dollars and 45 cents, and 0.45 of a dollar is 45 cents. Measurements do too: a bottle holds 1.5 liters, a bag weighs 2.5 kilograms, and a cloth length of 0.75 meter is three quarters of a meter. A 100-metre sprint timed at 10.25 seconds shows two decimal places because the race is decided in hundredths. This decimal calculator handles the money and measurement decimals above without binary-float errors.
FAQs
Final Thought
Use this decimal calculator to check your work, keep the decimal points lined up, and the next conversion will take less time.
