Toolstia / Ratio calculator
Ratio calculator
A ratio says how big one quantity is compared with another: 3 parts cement to 1 part water, a screen that is 16 wide for every 9 high, a profit shared 2 to 3 between two partners. The arithmetic is simple, but people often get stuck on the details: cutting a ratio down to its simplest form, finding a missing number in a scaled recipe, or turning a ratio into real amounts of money.
This calculator handles those three jobs in one place. You can simplify a ratio of two or more numbers, including decimals and fractions, solve a proportion of the form a : b = c : d by filling in three boxes, or split a total into shares that follow a ratio. It uses exact whole-number arithmetic for simplifying, so large numbers do not lose digits.
All of it runs in your browser as you type. Nothing is uploaded, and there is no limit on how many ratios you try.
Enter at least two non-negative numbers separated by colons, spaces or commas. Fractions and decimals work too.
A ratio compares quantities. Simplifying divides every part by their greatest common divisor, so 12:18:24 becomes 2:3:4.
How it works
- Choose simplify, solve a proportion or split a total.
- Enter the numbers.
- Read the result.
Simplifying
Divide every part by their greatest common divisor. 12:18:24 becomes 2:3:4. Ratios written with decimals or fractions are first scaled to whole numbers, so 0.5:1.5:2 becomes 1:3:4.
Solving a proportion
In a : b = c : d, the cross products a × d and b × c are equal. Fill in three boxes and the tool solves the fourth. Example: 2 : 3 = 4 : d gives d = 6.
Splitting a total
Add the parts of the ratio, divide the total by that sum, and multiply by each part. Splitting 100 in the ratio 2:3 gives 40 and 60.
Scaling recipes and maps
Use a proportion to scale a recipe, convert a map distance, or work out a price for a different quantity.
Simplifying: a worked example
Choose "Simplify a ratio" and enter 12:18:24. The greatest common divisor of 12, 18 and 24 is 6, so the result is 2 : 3 : 4. The tool also shows the parts as shares of the whole. The simplified parts add up to 9, so you see 2/9, 3/9 and 4/9. That second line is useful when you want to know what fraction of the total each part represents.
A ratio that is already in lowest terms is left alone. Entering 16:9 returns 16 : 9, because 16 and 9 share no common factor other than 1.
Decimals and fractions in a ratio
Parts do not have to be whole numbers. The tool converts each part to an exact fraction, finds a common denominator, scales everything to whole numbers and then simplifies. Entering 0.5:1.5:2 gives 1 : 3 : 4. Entering 1/2:1/3 gives 3 : 2, because one half is three sixths and one third is two sixths.
Parts can be separated by a colon, a space or a comma, which means a decimal comma is not understood: 1,5 is read as two parts, 1 and 5. A mixed number such as 1 1/2 is also broken at the space. Write those as 1.5 or 3/2. Negative parts and a ratio made only of zeros are rejected in this mode; a single zero part is fine, for example 0:5 simplifies to 0 : 1.
Solving a proportion
In "Solve a proportion" mode you fill three of the four boxes a, b, c and d and leave one empty. The relationship is a : b = c : d, so a times d equals b times c, and the tool solves the empty box from that.
Example: a recipe uses 250 g of flour for 4 servings and you want 6 servings. Enter a = 4, b = 250, c = 6 and leave d empty. The answer is d = 375, because 250 times 6 divided by 4 is 375. Keep the same order on both sides: servings on the left of each pair and flour on the right. Another check: 3 : 4 = c : 20 gives c = 15.
If the equation would need a division by zero, for example when b is zero and you ask for c, no answer is shown. If you fill all four boxes or only two, the tool shows a hint instead of a result.
Splitting a total
In "Split a total" mode, enter a ratio and the amount to divide. The tool simplifies the ratio, adds up the parts and gives each part its share of the total. Splitting 1,000 in the ratio 2:3:5 gives 200, 300 and 500, since the parts add up to 10 and each share is the total divided by 10 times the part.
Not every split is a round number. Splitting 100 in the ratio 1:2 gives 33.33333333 and 66.66666667, shown to 10 significant digits. If you are dividing money, round the shares yourself and decide where the spare cent goes, because the rounded shares may add up to a cent more or less than the total. The total must be zero or more.
Common mistakes
The most frequent error is mixing the order of the units. 3 red to 5 blue is not the same as 5 red to 3 blue. Another is treating a part-to-part ratio as a part-to-whole one. In a ratio of 2:3, the first part is two fifths of the whole, not two thirds. The simplify mode prints those shares for exactly this reason.
Also remember that both sides of a proportion must use the same units. 2 hours : 30 minutes is 4 : 1, not 2 : 30, so convert first. Finally, a ratio only makes sense for quantities that scale together. Doubling the flour in a recipe usually works; doubling the baking time does not.
When to use another tool
For screen and image shapes, the aspect ratio calculator keeps width and height in step and gives you the new height for a chosen width. For percentages of a number, a percentage calculator is more direct. This tool is for general ratios, proportions and sharing amounts.
Questions
Can a ratio have zero in it?
Yes in a simple ratio like 0:5. In a proportion, zero cannot be a divisor.
Do I need whole numbers?
No. Decimals and fractions work.
Is anything uploaded?
No. Your numbers stays in your browser and is never sent anywhere.
What is the difference between a ratio and a fraction?
A ratio compares parts with each other, while a fraction compares a part with the whole. A ratio of 2:3 means 2 parts to 3 parts, so the whole is 5 parts and the shares are 2/5 and 3/5. The simplify mode shows both views.
Why is my answer in a proportion not a whole number?
The tool solves the equation exactly, and many proportions have non-integer answers. For example 4 : 7 = 10 : d gives d = 17.5. Results are shown to up to 10 significant digits, so a repeating decimal such as 3.333333333 is rounded.
Can I use more than three numbers in a ratio?
Yes, for simplifying and splitting. You can enter as many parts as you need, such as 1:2:3:4:5. The proportion mode is limited to the four boxes a, b, c and d.
Does the order of the numbers matter when simplifying?
The values are simplified in the order you give them, and that order is kept in the result. 12:18 and 18:12 simplify to 2 : 3 and 3 : 2. The shares you get when splitting a total follow the same order, so put each party's part in the position you want it.