Math and geometry

Rule of three calculator

Solve a four-term direct proportion when three values are known. The calculator finds x while keeping the ratio relationship visible.

Enter your values

Your results

x — proportional result
—

How we got this result: The page substitutes your current entries into this rule: For a : b = c : x, cross multiplication gives x = b × c ÷ a.

How to use this calculator

  1. Enter a — first known value, b — corresponding value, c — new first value.
  2. Review the assumptions and units shown beside the fields.
  3. Read the live result, calculation note, and worked examples before using the answer.

Matching the two sides of a direct proportion

A rule-of-three problem starts with two quantities that change at a constant rate. If 2 items cost 6 currency units and every item has the same price, the cost per item is fixed. Asking for the cost of 5 items does not require a guess: the new quantity must preserve the relationship between quantity and cost. Written as a proportion, 2 : 6 = 5 : x. The first pair establishes the rate, and the second pair asks for the corresponding value at a new scale.

The calculator labels the three known entries a, b, and c. They form a : b = c : x, so a and c must describe the same kind of quantity, while b and x must describe another kind. In the item example, a = 2 items, b = 6 currency units, and c = 5 items. The result is x = 15 currency units. Keeping the units in those positions is more important than memorizing the letters, because the same formula works for ingredients, material weight, distance at constant speed, and many other direct proportions.

The essential assumption is linear scaling through zero. Doubling the first quantity must double the corresponding second quantity, and halving it must halve the second. A fixed admission fee, a volume discount, a changing hourly rate, or a recipe ingredient that does not scale with servings would break that assumption. The arithmetic can still produce a number in those cases, but the number would not model the situation described.

Deriving x with cross multiplication

Starting from a : b = c : x is the same as writing a/b = c/x. Multiplying both sides by b and x gives ax = bc. When a is not zero, dividing by a isolates the unknown: x = b × c ÷ a. This derivation explains both the order of the inputs and the calculator's refusal to calculate when a is zero. Division by zero is not defined, and a zero baseline cannot establish the required rate.

For 2 items costing 6, with a new quantity of 5 items, substitution gives x = 6 × 5 ÷ 2 = 15. A useful alternative check is to find the unit rate first: 6 ÷ 2 = 3 currency units per item, then 3 × 5 = 15. Cross multiplication and the unit-rate method are not competing rules; they are two arrangements of the same calculation. If they disagree, the numbers were probably entered in mismatched positions or a unit conversion was missed.

Do not round the rate before finishing unless the problem explicitly requires it. A rate can be a repeating decimal even when the final result is simple. Keeping the multiplication and division in one expression preserves more precision. The interface may round the displayed result for readability, but the relationship should be checked using the unrounded inputs whenever the result will feed another calculation.

Scaling a recipe from eight to twelve servings

Suppose 3 cups of an ingredient make 8 servings and the mixture scales uniformly. To find the amount for 12 servings, pair servings with servings and cups with cups: 8 servings : 3 cups = 12 servings : x cups. The calculation is x = 3 × 12 ÷ 8 = 4.5 cups. The scale factor is 12 ÷ 8 = 1.5, so multiplying the original 3 cups by 1.5 provides the same check.

Scaling down uses the identical structure. For 4 servings, x = 3 × 4 ÷ 8 = 1.5 cups. The output is smaller because c is half of a. This direction check is quick and effective: when the new serving count is larger, the ingredient amount should be larger; when it is smaller, the ingredient amount should be smaller. A result moving in the opposite direction points to reversed fields or to an inverse relationship rather than a direct one.

Recipe calculations also show the boundary between arithmetic and practical judgment. The proportion can scale a measurable ingredient, but it does not decide whether an oven can hold a larger batch, whether cooking time changes, or whether a whole-item ingredient must be rounded. The result answers the narrow ratio question. Any later adjustment should be identified separately instead of being presented as if it came from the formula.

Checking a material-weight example

If 4 meters of uniform material weigh 10 kilograms, the weight of 7 meters follows from 4 : 10 = 7 : x. The calculator evaluates 10 × 7 ÷ 4 and returns 17.5 kilograms. The unit-rate check is 10 ÷ 4 = 2.5 kilograms per meter; multiplying 2.5 by 7 also gives 17.5 kilograms. Both checks rely on the material having the same mass per unit length throughout.

Units make the setup auditable. The calculation can be read as (10 kg × 7 m) ÷ 4 m. The meters cancel, leaving kilograms, which is the required unit. If the expression instead leaves meters squared per kilogram or another unexpected unit, the pairs have been arranged incorrectly. Writing units beside the numbers is especially useful when one side uses centimeters and the other uses meters: convert them to a common unit before applying the proportion.

A reasonableness bound adds another check. Seven meters is between one and two times four meters, so its weight should be between 10 and 20 kilograms. The computed 17.5 lies inside that range. This kind of rough bound will not prove every decimal, but it can expose a misplaced decimal point or an inverted ratio immediately.

Distinguishing direct from inverse proportion

The calculator solves direct proportions: as c changes relative to a, x changes by the same factor relative to b. Constant unit price is direct because more items cost more. Uniform material weight is direct because a longer piece weighs more. Before entering values, ask whether multiplying the first quantity by a factor should multiply the second by that factor as well. If the answer is yes, the direct rule is a plausible model.

Inverse proportion keeps a product constant instead of a ratio. For a fixed job under idealized conditions, doubling the number of equally productive workers might halve the completion time. That relationship would be workers × time = constant, not workers/time = constant. Entering it into x = b × c ÷ a would make time increase with worker count, which is the opposite of the intended model. The field labels cannot identify this conceptual mistake for you.

Some situations are neither direct nor inverse across their full range. Taxi prices can combine a fixed starting charge with a per-distance charge; shipping rates can change at weight thresholds; productivity may not scale perfectly with team size. In such cases, use the actual pricing rule or model rather than forcing three known numbers into a proportion. A precise calculation from an unsuitable model is still an unsuitable answer.

Preventing field-order and unit errors

The most common setup error is not an arithmetic failure but a pairing failure. In a : b = c : x, a and c occupy matching positions. If a is a number of items, c must also be a number of items; if b is a cost, x will be a cost. Swapping a and b without changing the rest creates a different equation. The calculator faithfully solves that new equation even though it no longer represents the question you meant to ask.

A compact input checklist prevents most mistakes. First, write the known pair with its units. Second, place the new value under the known value with the same unit. Third, name the unit expected for x. Finally, predict whether x should be larger or smaller than b. For the 4-meter, 10-kilogram example and a new length of 7 meters, x must be a weight larger than 10 kilograms. The result 17.5 kilograms satisfies both requirements.

Percent notation deserves similar care. A statement such as 8 out of 20 corresponds to 40 out of 100 because 8 × 100 ÷ 20 = 40. Here the value 40 is a number on a per-hundred scale; attaching the percent sign is part of interpreting the output. Do not enter 0.40 and 40% interchangeably unless every other value uses the same convention.

Using scale factors and bounds to verify the result

The scale factor c ÷ a summarizes how much the scenario changed. Once that factor is known, x must equal b times the factor. With a = 8 and c = 12, the factor is 1.5; therefore 3 cups become 4.5 cups. With a = 8 and c = 4, the factor is 0.5; therefore 3 cups become 1.5 cups. This check exposes a surprising result without repeating the exact cross-multiplication steps.

Bounds are useful when the factor is easy to estimate. If c is slightly more than a, x should be slightly more than b. If c is three times a, x should be three times b. The sign also matters: with the usual real-world examples, all quantities are nonnegative. A negative output from positive inputs cannot occur under x = b × c ÷ a, so it would signal a data-entry problem. In a mathematical problem where negative values are meaningful, interpret the sign according to that context rather than applying a physical assumption.

Finally, substitute the answer back into the proportion. For the item example, 2/6 and 5/15 both simplify to 1/3. For the material example, 4/10 and 7/17.5 both equal 0.4. Matching ratios confirm that the computed value satisfies the equation, while the unit and direction checks confirm that the equation matches the intended situation.

Scope, rounding, and zero baselines

The function accepts three numeric inputs and returns (b × c) ÷ a. When a equals zero, it returns no result because the required division is not defined. A very small nonzero a can also create a very large result, so confirm that the baseline is correct rather than assuming the magnitude is meaningful. Empty, mislabeled, or differently scaled inputs should be fixed before interpreting any output.

Rounding belongs at the end. The exact result for the material example is 17.5 kilograms, while a context involving whole packages might require purchasing 18. That purchasing decision is not a new proportional result; it is a separate rounding rule imposed by the situation. State both values when the distinction matters: 17.5 kilograms required, 18 whole one-kilogram packages purchased.

The rule of three is most reliable when the rate is known to be constant, the quantities are paired correctly, and the units are compatible. It is a transparent scaling tool, not evidence that a relationship is proportional. Establish the model first, calculate second, and then use substitution, units, direction, and scale-factor checks to validate the answer.

Reference and example table

CaseMeaning
Example 1If 2 items cost 6, then 5 items cost 15: 6 × 5 ÷ 2.
Example 2If 4 meters weigh 10 kg, 7 meters at the same rate weigh 17.5 kg.
Example 3If 3 cups serve 8, then 12 servings need 4.5 cups.

Frequently asked questions

What formula does the rule-of-three calculator use?

For a : b = c : x, it uses x = b × c ÷ a. This follows from cross multiplying to obtain ax = bc and then dividing by nonzero a.

How should I order the three known values?

Put matching kinds of quantities in a and c. The value b is paired with a, and the result x will have the same kind of unit as b.

How much do 5 items cost if 2 items cost 6?

Enter a = 2, b = 6, and c = 5. The result is 6 × 5 ÷ 2 = 15 currency units.

How much ingredient is needed when 3 cups serve 8 people and I need 12 servings?

Use 8 : 3 = 12 : x. The result is 3 × 12 ÷ 8 = 4.5 cups, assuming the ingredient scales directly with servings.

Can I use this calculator for inverse proportion?

No. The calculator preserves a constant ratio, so both quantities move by the same factor. An inverse proportion preserves a product and needs a different setup.

Why is there no result when a is zero?

The formula divides by a. Division by zero is not defined, so a zero baseline cannot establish the direct-proportion rate.

Should I round a proportional result?

Keep full precision through the calculation and round only for the final context. If whole units must be purchased, distinguish the exact requirement from the separately rounded purchase amount.

How can I check the answer without repeating the same formula?

Compute the scale factor c ÷ a and multiply b by it, or substitute x back into the ratios and confirm that a/b equals c/x. Also check units and whether the result moved in the expected direction.