Simplify a fraction
Reduce a fraction to its lowest terms, and read off the mixed number, the exact decimal and the percentage that go with it. Every figure is produced by whole-number arithmetic, so a repeating decimal is shown as the block that repeats rather than as a rounded approximation of it.
Euclid's algorithm, step by step
| 1 | 1071 | 462 | 2 | 147 |
| 2 | 462 | 147 | 3 | 21 |
| 3 | 147 | 21 | 7 | 0 |
Results are provided as-is, with no warranty of accuracy. The method and its sources are published below so you can check the working.
How it works
What this works out
Two fractions can look completely different and be the same number. Putting one in its lowest terms is what makes two of them comparable, and it is the step that turns an answer into a mark in an exercise book rather than an argument about whether 22/51 and 462/1071 are the same thing.
This tool does that, and then gives the three other ways the same value gets written: the mixed number, the decimal, and the percentage. The decimal is the interesting one, because most fractions do not have a finite decimal at all, and a calculator that hands back nine digits and stops has quietly changed the number.
The method
The two boxes are read as the decimals they were typed as, not as the binary values a browser holds them in. Both are then multiplied by the same power of ten until they are whole numbers. That step is allowed because multiplying the top and the bottom by the same figure never changes what a fraction is worth; it is also why the power of ten has to come from the longer of the two inputs, since scaling only far enough for one of them leaves the other fractional.
From there everything is whole-number arithmetic. Euclid’s algorithm finds the greatest common divisor: divide the larger number by the smaller, then divide the smaller by the remainder, and repeat until the remainder is zero. The divisor used on that last line is the greatest common divisor, and dividing both halves by it is the whole of simplification. The steps are shown in a table below the result, because that table is the proof of the answer rather than a decoration.
The decimal is produced by long division rather than by dividing two numbers and seeing what comes out. Each step multiplies the remainder by ten and divides again, and every remainder seen is recorded. There are only as many possible remainders as the denominator, so the sequence must either reach zero or repeat one it has already had — and the first repeat is exactly where the recurring block begins. That is why the brackets can be trusted: they are not pattern matching on the digits, they are the point at which the division provably started going round.
Before you read on
Euclid's algorithm on 1071 and 462 ends with the line 147 = 7 x 21 + 0. What is the greatest common divisor?
21 — the divisor on the line where the remainder reached zero. Dividing both halves by it is the whole of simplification: 1071 / 21 = 51 and 462 / 21 = 22, and 51/22 cannot be reduced further because 21 was the greatest such number and not merely a convenient one. The algorithm is about 2,300 years old and is still the fastest way to do this; the table under the result prints every line of it, because that table is the proof of the answer rather than a decoration.
1071 = 2 x 462 + 147Divide the larger by the smaller and keep the remainder. Anything dividing both 1071 and 462 must also divide that 147.
462 = 3 x 147 + 21So the problem is now the smaller pair, 462 and 147 — the same question about smaller numbers.
147 = 7 x 21 + 0The remainder is zero, so stop. 21 divides 147 exactly, and by the line above it therefore divides everything that came before.
1071 / 21 = 51, 462 / 21 = 22Divide both halves by it. 51/22 is in its lowest terms.
A worked example
Simplify 1071/462, the pair Euclid’s algorithm is usually taught with.
| In its lowest terms | 51/22 |
| As a mixed number | 2 7/22 |
| As a decimal | 2.3(18) |
| Cancelled by | 21 |
| Rounded decimal | 2.31818182 |
| As a percentage | 231.8182% |
The working:
1071 = 2 x 462 + 147
462 = 3 x 147 + 21
147 = 7 x 21 + 0 <- last divisor, so gcd = 21
1071 / 21 = 51
462 / 21 = 22
51 / 22 = 2 remainder 7 -> 2 and 7/22
long division of 7 by 22, remainders in the margin:
0.3 remainder 4
0.31 remainder 18
0.318 remainder 4 <- 4 has been seen, so 18 repeats
So the decimal is 2.3(18), and 2.3181818… is exact rather than rounded. These are the same numbers asserted in this tool’s test file, so if the formula ever changes without this page changing with it, the build fails.
What it does not do
It simplifies one fraction at a time, and it does not add, subtract, multiply or divide two of them. It cannot take a recurring decimal as input — there is no way to type “nought point three recurring” into a number box, so 0.333 is read as exactly that and reduces to 333/1000. It does not find a simpler fraction that is merely close to the value entered, which is a different job from simplification and gives a different answer. And where a whole number grows past what a double can count in ones, the numeric boxes stand down and show a dash; the fraction, the mixed number and the decimal are text and stay exact.
A fraction is also a proportion. Where the question underneath is how much larger one number is than another, percentage increase gives the same relationship in the form most people expect to read it.
How it is done
- Read each box as the exact decimal that was typed rather than as the binary number a browser stores it in, and count how many decimal places the longer of the two has.
- Multiply both the top and the bottom by ten to the power of that count. Scaling both halves by the same amount leaves the value of the fraction untouched while turning both into whole numbers.
- Run Euclid's algorithm on the two whole numbers with their signs removed — divide the larger by the smaller, then the smaller by the remainder, and keep going until a remainder of zero. The last divisor used is the greatest common divisor.
- Divide the top and the bottom by that divisor. What is left is the fraction in its lowest terms, with any minus sign moved onto the numerator so that -3/4 and 3/-4 come out the same way.
- Divide the numerator by the denominator once more for the mixed number — the quotient is the whole part and the remainder sits over the same denominator.
- Produce the decimal by long division, recording every remainder as it appears. A remainder of zero ends the expansion. A remainder that has already been seen means the digits from that point repeat forever, and they are shown in brackets.
What it assumes
- A minus sign always ends up on the numerator, so -3/4 and 3/-4 both come out as -3/4. They are the same number, and one canonical form is what makes two answers comparable.
- A fraction that divides exactly is written as a plain whole number rather than as something over one, so 10/5 comes out as 2 and never as 2/1.
- Decimal inputs are multiplied by a power of ten before anything else happens, so 2.5/0.75 is treated as 250/75. The answer is exact, but a value with many decimal places produces very large lowest terms.
- The repeating block of a decimal is only bracketed if it both starts and finishes within the number of places set under More options. Beyond that the expansion is cut off with an ellipsis rather than guessed at.
- Whole numbers above 9,007,199,254,740,991 cannot be shown in the numeric boxes without losing digits, so those boxes show a dash. The fraction itself is text and stays exact whatever its size.
- The rounded decimal and the percentage are rounded, to eight and four places. A value smaller than that rounds to zero in those two boxes while the exact form beside them is unchanged.
Common questions
What is 45/60 in its simplest form?
Three quarters. The greatest common divisor of 45 and 60 is 15, and dividing both by it leaves 3/4, which is 0.75 or 75%. Cancelling by 5 first gives 9/12, which is correct but not yet finished — 9 and 12 still share a factor of 3.
What do the brackets in the decimal mean?
The digits inside them repeat forever. 2.3(18) means 2.3181818... with the 18 continuing without end, and 0.(3) means 0.3333... The notation is exact where writing out a few digits and stopping is not.
Is my calculation sent anywhere?
No. The arithmetic runs in this browser tab and there is no server to send it to. The page works with the network disconnected, which is the quickest way to check the claim rather than take it on trust.
Can I type decimals into the boxes?
Yes. Both numbers are multiplied by the same power of ten until they are whole, so 2.5/0.75 becomes 250/75 and then 10/3. What you cannot type is a recurring value: 0.333 is three hundred and thirty-three thousandths, and it reduces to 333/1000 rather than to a third.
What happens if the bottom number is zero?
Nothing is calculated, and the boxes show a dash with an explanation beside them. Division by zero has no value at all, so there is no simplest form to give and no decimal to expand.
Why does one of the number boxes show a dash?
Because the whole number in it is larger than 9,007,199,254,740,991, above which a JavaScript number cannot count in ones. Showing a figure that is out by one or two would be worse than showing nothing, so the numeric boxes stand down and the exact fraction is given as text instead.
Why does the tool show 2 rather than 2/1?
Because a denominator of one carries no information. Once the common factor is cancelled, 10/5 is the whole number 2, and writing it over a one would suggest there is still something to divide.
How do I know the answer is fully simplified?
The step-by-step table below the result is the proof. The last row always ends in a remainder of zero, and the divisor on that row is the greatest common divisor — the largest number that goes into both halves. Once it has been cancelled there is nothing left to cancel.
Sources
Method written and checked by Tessalor on Jul 30, 2026.