What this calculator answers
Given three numbers in a proportion, where a is to b as c is to x, this finds the missing fourth number, x. It is the general version of “scale a recipe” or “if 4 apples cost $6, what do 10 apples cost?”. The same question turns up in cooking, maps, screen formats, drawings, mixtures and prices per item.
The method has an old name, the rule of three: three known numbers give the fourth.
Formula
a / b = c / x
x = (b × c) / a
The second line comes from cross-multiplying: multiply both sides by b and x, and it reads a · x = b · c. Divide by a, and x stands alone.
Worked examples
Recipe. 4 servings need 6 eggs. How many eggs for 10 servings? a = 4, b = 6, c = 10, so x = (6 × 10) / 4 = 15.
Price. 4 apples cost $6. What do 10 cost? x = (6 × 10) / 4 = $15. You get the same answer by first working out the price per apple, 6 / 4 = $1.50, and multiplying by 10. That is the unitary method, and it is the proportion split into two steps.
Map. On a map at a scale of 1 : 50,000 the distance is 3 cm. How far is it on the ground? a = 1, b = 50,000, c = 3, so x = 150,000 cm = 1.5 km. More on that on the page about scale.
Screen format. A 16 : 9 video is 1920 pixels wide. How tall is it? a = 16, b = 9, c = 1920, so x = 1080. A 4 : 3 image 1024 wide is 768 tall. The presets above the calculator fill in the common formats.
Is it really proportional?
The calculator assumes the two quantities grow at the same rate: twice the servings, twice the eggs. That is called direct proportion, and its graph is a straight line through the origin. Test it with one question: does doubling one double the other? If yes, the calculator fits.
If one falls as the other rises, it is inverse proportion, and the calculator gives the wrong answer. 4 painters need 6 days. How long do 3 painters take? Not 4.5 days but 4 · 6 / 3 = 8 days: the work, 24 painter-days, is fixed, and fewer painters take longer.
If a whole is to be split in a given ratio, such as 200 g in the ratio 3 : 5, you want the share of a ratio.
What this doesn’t cover
- Inverse proportion, see the section above.
- Scaling that is not linear. Cooking time, area and volume do not scale like length: a cake with twice the diameter has four times the surface.
- Unit conversion. All three values need to be in the right units already, and the answer comes out in the same unit as b.
Common questions
Does the order I enter the numbers in matter?
Yes, in that pairs belong together. a and c should be the same kind of quantity
(servings, servings) and b and x the other (eggs, eggs). Swap a and
b without swapping c and the calculator answers a different question.
Why is a dash shown when a is 0?
Division by zero has no defined answer. If a is 0 there is no ratio to scale from, so there
is no value of x to work out.
Can the numbers be negative or decimals?
Yes. The maths works the same whatever the sign or the decimals, though negative ratios are unusual
outside contexts like temperature change or debt.
How do I work with percentages instead?
A percentage is a proportion with 100 as one of the numbers: 30 out of 120 is x out of 100. For
percentage questions the percentage calculator is built for exactly that.