Enter the fraction just as it looks (top box = numerator, bottom box = denominator). For a mixed number such as \(2\dfrac{21}{98}\), also use the whole number box to the left of the fraction. For an ordinary fraction, leave the whole number box blank.
Table of Contents
-
What you can do on this page
-
What is this calculation used for?
-
How to Use
-
Formula
-
Symbols and terms
-
Good to know before you start
-
How to calculate it in Excel
-
How to calculate it in Google Sheets
-
How to calculate it in Python
-
How to write it in LaTeX and other math languages (copy and paste)
-
How to have ChatGPT do the calculation
-
DataChef Features
-
Related Features
-
NumberChef Calculators List
What you can do on this page
- Enter the numerator and denominator, and the fraction is simplified to lowest terms (the form that cannot be simplified any further)
- Mixed numbers (with a whole number part) such as \(2\dfrac{21}{98}\) can be simplified as they are, and the answer is shown both as an improper fraction (numerator at least as large as the denominator) and as a mixed number
- Negative fractions and fractions with decimals, such as \(\dfrac{1.5}{2}\), work too. The value as a decimal and each step of the work are also shown
- A plain-language explanation of the formulas and copy-and-paste formulas for Excel, Google Sheets and Python are all on this page
What is this calculation used for?
On math tests, fraction answers are normally expected in lowest terms, and forgetting to simplify often costs points.
"When you get an answer, check at the end that the numerator and denominator have no common factor left." This habit is a basic move from elementary school fractions all the way to college entrance exams. Dividing by the greatest common factor finishes it in one step, so checking is quick too.
A Full HD screen is 1920 × 1080 pixels, but its ratio is called 16:9: \(\dfrac{1920}{1080}\) simplified by the greatest common factor 120 is \(\dfrac{16}{9}\).
Writing a ratio in lowest terms lets you see at a glance whether two shapes are the same, so this idea is used every day in video, design and printing.
On a bicycle with 48 teeth on the front gear and 18 on the rear, the gear ratio is \(\dfrac{48}{18}\) simplified to \(\dfrac{8}{3}\). You can see right away that "one turn of the pedals turns the rear wheel \(\dfrac{8}{3}\) times (about 2.67 turns)".
In designing machines with gears, the simplified ratio is the basic language for describing the specs.
Frozen orange juice concentrate usually says to mix a 12-ounce can with 36 ounces of water (3 cans). Simplify \(\dfrac{12}{36}\) to \(\dfrac{1}{3}\) and remember it as "1 part concentrate to 3 parts water", and you can make the same taste for 2 people or for 10.
Professional recipes are often written as ratios like "1:3" because they have been simplified to the simplest ratio.
The probability that two dice add up to 3 is \(\dfrac{2}{36}\) if you just count, but simplified to \(\dfrac{1}{18}\), you can read it as "about once in 18 rolls".
Probabilities often come out of a calculation unsimplified, and from lottery odds to insurance planning, simplifying is essential whenever you explain a probability to someone.
Formula
Symbols and terms
Symbols
| \(n\) | lowercase n | The numerator (top number) of the fraction before simplifying. (Example - the 21 in \(\dfrac{21}{98}\)) |
| \(d\) | lowercase d | The denominator (bottom number) of the fraction before simplifying. (Example - the 98 in \(\dfrac{21}{98}\)) |
| \(g\) | g | The greatest common factor of the numerator and denominator. To simplify, divide both by this number. (Example - for 21 and 98, it is 7) |
| \(N\) | capital N | The new numerator after a calculation. On this page it is the simplified numerator, or the numerator you get when changing a mixed number to an improper fraction. |
| \(D\) | capital D | The new denominator after simplifying. (Example - the 14 in \(\dfrac{3}{14}\), the simplified form of \(\dfrac{21}{98}\)) |
| \(w\) | w | The whole number part of a mixed number, from the first letter of "whole". (Example - the 2 in \(2\dfrac{3}{14}\)) |
| \(q\) | q | The quotient when the numerator is divided by the denominator, from the first letter of "quotient". It becomes the whole number part of the mixed number. |
| \(r\) | r | The remainder when the numerator is divided by the denominator, from the first letter of "remainder". It becomes the numerator of the fraction part of the mixed number. |
| \(\gcd(n, d)\) | G-C-D of n and d | The notation for "the greatest common factor of \(n\) and \(d\)". GCD stands for greatest common divisor, another name for the greatest common factor. |
Terms
| simplifying | Dividing the numerator and denominator of a fraction by a common factor to make the fraction simpler. Also called reducing a fraction. The value itself does not change. |
| lowest terms | A fraction is in lowest terms (or simplest form) when it cannot be simplified any further. The greatest common factor of its numerator and denominator is 1. When a test says "simplify your answer", this is the form to use. |
| common factor | A factor shared by two or more numbers. (Example - the common factors of 12 and 18 are 1, 2, 3 and 6) |
| greatest common factor (GCF) | The largest of the common factors. It is also called the greatest common divisor (GCD). |
| improper fraction | A fraction such as \(\dfrac{31}{14}\) whose numerator is equal to or larger than its denominator. Its value is 1 or more. |
| mixed number | A number such as \(2\dfrac{3}{14}\) written as a whole number part followed by a fraction part. It has the same value as an improper fraction but makes the size easier to picture. |
| proper fraction | A fraction such as \(\dfrac{3}{14}\) whose numerator is smaller than its denominator. Its value is less than 1. The fraction part of a mixed number is always a proper fraction. |
| prime factorization | Writing a number as a product of prime numbers (for example, \(12 = 2 \times 2 \times 3\)). Multiplying the prime factors two numbers share gives their greatest common factor. |
| Euclidean algorithm | A way to find the greatest common factor by dividing the larger number by the smaller one, then repeating with the pair "divisor and remainder". It is fast even for large numbers. |
Good to know before you start
Here is what helps you use the calculation on this page with real understanding, not just by pressing the button.
| What a fraction is (Grades 3–4) |
|
| Factors, common factors and the GCF (Grades 4–6) |
|
| Equivalent fractions, simplifying, improper fractions and mixed numbers (Grades 4–5) |
|
| Division with remainders (Grades 3–4) |
|
How to calculate it in Excel
| Original numerator n | 21 |
| Original denominator d | 98 |
| Greatest common factor g | =GCD(B1,B2) |
| Simplified numerator N | =B1/B3 |
| Simplified denominator D | =B2/B3 |
| First number (numerator) | 12 |
| Second number (denominator) | 18 |
| Greatest common factor g | =GCD(B1,B2) |
| Whole number part w | 2 |
| Numerator n | 21 |
| Denominator d | 98 |
| Numerator of the improper fraction N | =B1*B3+B2 |
| Numerator of the improper fraction N | 31 |
| Denominator D | 14 |
| Whole number part (quotient) q | =QUOTIENT(B1,B2) |
| Remainder (numerator of the fraction part) r | =MOD(B1,B2) |
GCD finds the greatest common factor, QUOTIENT finds the quotient (the whole number part), and MOD finds the remainder.
In the first table, for example, B3 shows the greatest common factor 7, B4 the simplified numerator 3, and B5 the simplified denominator 14 (\(\dfrac{21}{98}\) → \(\dfrac{3}{14}\)).
To change a negative fraction to a mixed number, calculate without the sign and add the sign at the end.
How to calculate it in Google Sheets
| Original numerator n | 21 |
| Original denominator d | 98 |
| Greatest common factor g | =GCD(B1,B2) |
| Simplified numerator N | =B1/B3 |
| Simplified denominator D | =B2/B3 |
| First number (numerator) | 12 |
| Second number (denominator) | 18 |
| Greatest common factor g | =GCD(B1,B2) |
| Whole number part w | 2 |
| Numerator n | 21 |
| Denominator d | 98 |
| Numerator of the improper fraction N | =B1*B3+B2 |
| Numerator of the improper fraction N | 31 |
| Denominator D | 14 |
| Whole number part (quotient) q | =QUOTIENT(B1,B2) |
| Remainder (numerator of the fraction part) r | =MOD(B1,B2) |
Copy the whole table, paste it into cell A1, and replace the numbers in column B with your own fraction.
How to calculate it in Python
from fractions import Fraction
from math import gcd
whole = 2 # whole number part of the mixed number (0 for an ordinary fraction)
numerator = 21 # numerator
denominator = 98 # denominator
improper_numerator = whole * denominator + numerator # numerator after changing to an improper fraction
g = gcd(improper_numerator, denominator) # greatest common factor of numerator and denominator
simplified = Fraction(improper_numerator, denominator) # fraction in lowest terms (Fraction simplifies automatically)
q, r = divmod(abs(simplified.numerator), simplified.denominator) # whole number part and remainder for the mixed number
print(f"As an improper fraction: {improper_numerator}/{denominator}")
print(f"Greatest common factor: {g}")
print(f"In lowest terms: {simplified}")
print(f"As a mixed number: {q} {r}/{simplified.denominator}")
print(f"As a decimal: {float(simplified)}")
How to write it in LaTeX and other math languages (copy and paste)
n/d = (n ÷ g)/(d ÷ g)
\dfrac{n}{d} = \dfrac{n \div g}{d \div g}
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mfrac><mi>n</mi><mi>d</mi></mfrac>
<mo>=</mo>
<mfrac>
<mrow><mi>n</mi><mo>÷</mo><mi>g</mi></mrow>
<mrow><mi>d</mi><mo>÷</mo><mi>g</mi></mrow>
</mfrac>
</mrow>
</math>
n/d = (n -: g)/(d -: g)
(n/g)/(d/g)
(n/g)/(d/g);
N = n/g; D = d/g;
n/d = (n/g)/(d/g)
g = gcd(n, d)
g = \gcd(n,\ d)
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mi>g</mi>
<mo>=</mo>
<mi>gcd</mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo>,</mo>
<mi>d</mi>
<mo stretchy="false">)</mo>
</mrow>
</math>
g = gcd(n, d)
GCD[n, d]
g := gcd(n, d);
g = gcd(n, d);
g = gcd(n, d)
N = w × d + n
N = w \times d + n
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mi>N</mi>
<mo>=</mo>
<mi>w</mi>
<mo>×</mo>
<mi>d</mi>
<mo>+</mo>
<mi>n</mi>
</mrow>
</math>
N = w xx d + n
w*d + n
N := w*d + n;
N = w*d + n;
N = w × d + n
N = q × D + r
N = q \times D + r
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow>
<mi>N</mi>
<mo>=</mo>
<mi>q</mi>
<mo>×</mo>
<mi>D</mi>
<mo>+</mo>
<mi>r</mi>
</mrow>
</math>
N = q xx D + r
q*d + r (* lowercase d because D (the derivative operator) is reserved in Mathematica *)
N := q*d + r; # lowercase d because D (the derivative operator) is reserved in Maple
N = q*D + r;
N = q × D + r
How to have ChatGPT do the calculation
You are a fraction calculation assistant. Do the following calculation by actually running Python code, and base your answer only on the numbers from the execution result (do not answer by mental math or guessing). Simplify the mixed number "2 and 21/98" to its simplest form. Find each of the following: 1. The mixed number written as an improper fraction 2. The greatest common factor of the numerator and denominator 3. The fraction in lowest terms (both as an improper fraction and as a mixed number) 4. The value as a decimal Show the formulas you used and the numbers from the execution result.
How to Use
-
1Enter your numbersType the numbers you want to calculate with into the input fields
-
2CalculatePress the "Calculate" button
-
3Check the resultThe result appears on the spot. The same page also explains the idea behind the calculation and the formula
DataChef Features
No technical knowledge required.
Intuitive and user-friendly operation.
Can be used without registering personal information.
Automatic file deletion by clicking "download".
and rapid file conversion.
No attribution required.
No need to contact us for commercial use permission.
