Skip to content
CalculatorAtlas

Decimal to Fraction Calculator

Tested

Exact fraction, percent and mixed number for a finite decimal.

Tested, not yet published. The formula for this calculator is implemented and passes its automated checks. This page stays non-indexable until it is reviewed and published.

Results

Enter your values and press Calculate. Results appear here.

  • • Result

Quick answer

A decimal converts to a fraction by writing its digits over a power of ten and reducing by the greatest common divisor. 0.375 = 375/1000 = 3/8, which is also 37.5%.

Enter a decimal. The calculator returns the simplified fraction, percentage and mixed number.

Related tools: Decimal to Fraction Calculator: Convert a terminating decimal to a simplified fraction. Fraction to Decimal and Percent Calculator: Decimal, percent and simplest form of a fraction. Fraction to Decimal Calculator: Convert a fraction to a decimal, showing repeating digits.

This page covers the same calculation as the decimal to fraction calculator page; the two give identical results.

How to use the Decimal to Fraction Calculator

  1. Type decimal, for example 0.375.
  2. Press Calculate to see the result, and use Reset to start again.
Inputs of the Decimal to Fraction Calculator
InputWhat to enterAllowed values
DecimalText, such as 0.375—

Formula and method

Formula

digits ÷ 10^(decimal places), reduced by the greatest common divisor

IEEE-754 double precision; shown to at most 6 decimal places.

Works for terminating decimals of up to 15 decimal places.

Worked examples

These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.

Example 1

Inputs: Decimal = 0.375.

Results of example 1
ResultValue
Fraction3/8
Percent37.5%
Mixed number3/8

Example 2

Inputs: Decimal = 2.5.

Results of example 2
ResultValue
Fraction5/2
Percent250%
Mixed number2 1/2

Example 3

Inputs: Decimal = 0.125.

Results of example 3
ResultValue
Fraction1/8
Percent12.5%
Mixed number1/8

The first line is the headline result (fraction). Below it the decimal to Fraction Calculator lists percent and mixed number, which describe the same case from other angles. IEEE-754 double precision; shown to at most 6 decimal places.

Steps

Count the decimal places (3), put the digits over 10³ (375/1000) and divide top and bottom by their GCD (125), giving 3/8.

Repeating decimals

A repeating decimal such as 0.333… cannot be entered exactly; use a rounded value to get an approximate fraction or recognise the pattern (1/3). This page is not the four-operation decimal calculator that competitors offer under the same name.

What happens with invalid input

These messages are produced by the calculator itself, so you know what to fix.

  • Decimal: entering "1/3" shows "Enter a decimal number such as 0.375." beside that field and no result.

Choosing between the Decimal to Fraction Calculator and similar calculators

Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.

Choosing between the Decimal to Fraction Calculator and similar calculators
CalculatorYou enterIt returns
[Decimal to Fraction Calculator](/math/decimal-to-fraction-calculator/)decimalFraction
[Fraction to Decimal and Percent Calculator](/math/fraction-decimal-equivalents/)numerator and denominatorDecimal
[Fraction to Decimal Calculator](/math/fraction-to-decimal-calculator/)numerator and denominatorDecimal
[Fraction Calculator](/math/fraction-calculator/)numerator 1, denominator 1 and operationResult
[Inch Fraction Calculator](/math/inch-fraction-calculator/)decimal inches and nearestNearest fraction

Assumptions and limitations

  • Repeating decimals must be rounded first

If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for decimal to confirm this.

Frequently asked questions

What is 0.5 as a fraction?

0.5 is 5/10, which reduces to 1/2.

How do I convert 2.75?

2.75 is 275/100, which reduces to 11/4 or the mixed number 2 3/4.

What about negative decimals?

The sign is kept: −0.375 converts to −3/8.

What does the Decimal to Fraction Calculator calculate?

Exact fraction, percent and mixed number for a finite decimal. It returns Fraction, Percent and Mixed number.

What formula does the Decimal to Fraction Calculator use?

digits ÷ 10^(decimal places), reduced by the greatest common divisor. Works for terminating decimals of up to 15 decimal places.

What do I need to enter in the decimal to Fraction Calculator?

You enter Decimal.

How is the result rounded or limited?

IEEE-754 double precision; shown to at most 6 decimal places. Repeating decimals must be rounded first.

What is an example of a decimal to Fraction result?

With decimal 0.375, the fraction is 3/8.

Where does the method come from?

The method follows: Standard arithmetic.

Sources

  • Standard arithmetic

Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.