Ratio and proportion calculator
Enter three known values and get the fourth with a direct or inverse proportion. You can also simplify a ratio to its smallest whole numbers.
- Free
- No sign-up
- In your browser
When one quantity goes up, so does the other (price and amount, recipes…).
Result
Enter the values to see the result.
How to use this tool
- Choose the type: direct proportion (when one quantity goes up, so does the other), inverse proportion (when one goes up, the other goes down) or simplify a ratio.
- Enter the three known values: the first quantity, the value it corresponds to, and the new quantity.
- The result appears instantly, with a sentence that explains it and the formula used.
- To simplify, enter the two numbers of the ratio (for example, 1920 and 1080) and you'll get 16 : 9.
Direct proportion
Use it when two quantities are directly proportional: if one doubles, so does the other. For example, the price and the amount of a product, or the ingredients and the number of servings of a recipe.
If A corresponds to B, then C corresponds to X = B × C ÷ A. If 3 lb of apples cost $7.50, 5 lb cost 7.50 × 5 ÷ 3 = $12.50. This method is also known as the rule of three, or cross-multiplication.
Inverse proportion
Use it when quantities are inversely proportional: if one doubles, the other halves. For example, the number of workers and the days a job takes, or speed and travel time.
If A corresponds to B, then C corresponds to X = A × B ÷ C. If 4 painters take 6 days, 3 painters take 4 × 6 ÷ 3 = 8 days.
Before calculating, ask yourself: if the first quantity goes up, does the second go up or down? If it goes up, it's direct; if it goes down, inverse. Choosing the wrong type is the most common mistake.
Percentages as proportions
A percentage is a direct proportion where one of the quantities is 100. To find what percent 45 is of 180: if 180 corresponds to 45, then 100 corresponds to 45 × 100 ÷ 180 = 25, that is, 25%. For these cases there's also the percentage calculator.
Simplifying a ratio
Simplifying a ratio means dividing both numbers by their greatest common divisor. A 1920 × 1080 pixel screen has a 16 : 9 aspect ratio, and 12 : 18 is the same as 2 : 3. If there are decimals, the calculator first turns them into whole numbers: 1.5 : 2.25 is 2 : 3.
You'll also see the ratio written as “n : 1” (16 : 9 ≈ 1.7778 : 1) and each part's share of the total, which is handy for splitting costs or mixing ingredients.
Examples
Scaling a recipe
If 4 servings need 200 g of flour, how much for 6? Direct with 4, 200 and 6. Result: 300 g.
Workers and days
4 painters take 6 days. What about 3 painters? Inverse with 4, 6 and 3. Result: 8 days.
Speed and time
At 60 mph a trip takes 2 hours. At 80 mph? Inverse with 60, 2 and 80. Result: 1.5 hours (1 h 30 min).
Screen aspect ratio
Simplifying 1920 and 1080 gives 16 : 9; 1440 and 900 gives 8 : 5 (16 : 10).
Frequently asked questions
How do I know whether a proportion is direct or inverse?
Think about what happens if you double the first quantity. If the other also doubles (more pounds, higher price), it's direct. If it halves (more workers, fewer days), it's inverse.
What's the formula?
Direct: X = B × C ÷ A. Inverse: X = A × B ÷ C, where A corresponds to B and you're looking for the value that corresponds to C.
Can I use decimals?
Yes. Use a dot for decimals. The result is shown with up to four decimal places.
What about proportions with more than two quantities?
Problems that relate three or more quantities at once (for example, workers, hours per day and days) can be solved by chaining several simple proportions, one per quantity. This calculator solves one simple proportion at a time.
Is my data sent to a server?
No. All calculations happen in your browser and the numbers you type aren't sent to any server.
Related guides
Related tools
This page is also available in: Español, Português, Français
