Formulas and sources
Each formula this calculator uses, where it comes from, and what it leaves out. "How it works" shows the same formula with your own numbers.
Fraction to decimal
Fraction to Decimal mode
- N
- the numerator, with the whole part folded in when Use Mixed Numbers is on
- D
- the denominator, not zero
- Dec
- the decimal, shown to at most 10 places
A repeating decimal is rounded to 10 places with no mark: 1/3 shows as 0.3333333333 and 2/3 as 0.6666666667. Below 0.0000000001 the decimal is written with an exponent, so 1/10¹² shows as 1e-12, not 0.
Source: Uses the definition in the Common Core State Standards for Mathematics, 5.NF.B.3 [1]: a/b = a ÷ b.
Decimal to fraction
Decimal to Fraction mode
- N
- the numerator
- D
- the denominator
A typed decimal is written over its power of ten and reduced, at any length, so 0.62 is 62/100, then 31/50. When its digits end in a block typed again and again, the fraction of the repeating decimal is shown too: 0.3333333333 is 3333333333/10000000000, or 1/3 if the 3 repeats forever.
Source: Uses the rules in the Common Core State Standards, 4.NF.C.6 and 4.NF.A.1, and 8.NS.A.1 for a decimal that repeats [1]. When a typed tail counts as repeating is CalcTrail’s own rule.
Simplify
Simplify mode
- N
- the numerator
- D
- the denominator, not zero
- GCD
- the greatest common divisor of N and D, by Euclid’s algorithm
Decimal terms are first scaled to whole numbers by the same power of ten, so 2.5/5 reads as 25/50 and gives 1/2. The sign goes on the numerator.
Source: Uses the equivalent-fractions rule of the Common Core State Standards, 4.NF.A.1 [1], and Euclid’s algorithm as NIST defines it [2].
Add fractions
Add mode
- A/B
- the first fraction
- C/D
- the second fraction
The common denominator is the product of the two, B × D, as the standard prints it; the result is then reduced. A least common denominator gives the same value.
Source: Uses the formula in the Common Core State Standards for Mathematics, 5.NF.A.1 [1]: a/b + c/d = (ad + bc)/bd.
Subtract fractions
Subtract mode
- A/B
- the fraction subtracted from
- C/D
- the fraction taken away
Source: Uses the rule in the Common Core State Standards, 5.NF.A.1 [1], which covers adding and subtracting, with a minus in place of the plus.
Multiply fractions
Multiply mode
- A/B
- the first fraction
- C/D
- the second fraction
Source: Uses the formula in the Common Core State Standards for Mathematics, 5.NF.B.4.a [1]: (a/b) × (c/d) = ac/bd.
Divide fractions
Divide mode
- A/B
- the fraction divided
- C/D
- the divisor; C must not be zero
Source: Uses the formula in the Common Core State Standards for Mathematics, 6.NS.A.1 [1]: (a/b) ÷ (c/d) = ad/bc.
Exact arithmetic and mixed numbers
Every mode
Every term is read digit for digit from what you typed and the arithmetic is done on whole numbers of any length, so the answer is exact at every size the fields take. For example, 1/999999999999 + 1/999999999998 is 1999999999997/999999999997000000000002. A mixed number w n/d is read as (w × d + n)/d, negative when the whole part or the numerator carries a minus. Use Mixed Numbers writes an answer as a mixed number and adds the whole-number box; unticked, a whole part typed there no longer counts.
Source: CalcTrail’s own implementation of the rules above; no publisher.
Figures beside the result
Every mode
Each result also shows its decimal or fraction, the percentage, a bar, a ring up to one whole, and a grid when the denominator is 20 or less. A result of exactly 0 shows no decimal line.
Source: CalcTrail’s own figures; no publisher.
Parts of the same size: the Subtract 3/4 − 1/3 example
Sources
- National Governors Association Center for Best Practices and Council of Chief State School Officers. Common Core State Standards for Mathematics, standards 4.NF.A.1, 4.NF.C.6, 5.NF.A.1, 5.NF.B.3, 5.NF.B.4.a, 6.NS.A.1 and 8.NS.A.1. 2010.Our automated tests check this calculator against 6 cases from it.
- National Institute of Standards and Technology. Dictionary of Algorithms and Data Structures: Euclid’s algorithm. Entry modified March 2, 2015.
What this calculator does not cover
- Two fractions at a time, and basic conversions. It does not solve fraction word problems or algebraic fraction expressions; for percentage math, see the Percentage Calculator.
- It does not compare or order fractions, and it writes no repeating-decimal notation.
- Decimal to Fraction is exact for a decimal of any length, typed with or without an exponent.
Sources checked on
How we choose sources and test the calculators: How CalcTrail calculates