Ratio Calculator
Solve one missing term in the proportion A : B = C : D, verify the cross-products, and export the current calculation to a validated Excel workbook.
Excel export is ready for the demonstration values.
Proportion inputs
Choose the unknown term, then enter the other three values. Decimals and correctly grouped thousands are accepted.
The selected term becomes the calculated read-only field.
A finite number. Example: 3.
Must be nonzero in the completed ratio.
A finite number. Example: 27.
Calculated in the demonstration: 72.
Live result
The two ratios are equivalent.
Valid proportion: A × D equals B × C.
Calculation trail
D = (B × C) ÷ A
D = (8 × 27) ÷ 3 = 72. Cross-check: 3 × 72 = 8 × 27 = 216.
Equivalence checks
| Check | Left side | Right side | Interpretation |
|---|---|---|---|
| Ratio value | 3 ÷ 8 = 0.375 | 27 ÷ 72 = 0.375 | Match |
| Cross-products | 3 × 72 = 216 | 8 × 27 = 216 | Match |
| Scale factor | 3 × 9 = 27 | 8 × 9 = 72 | Same multiplier |
| Ratio notation | 3 : 8 | 27 : 72 | Equivalent |
The table is generated from the same canonical values used by the result cards and Excel workbook. Small display rounding does not change the full-precision calculation.
How to use the ratio calculator
What this calculator does
This calculator solves a four-term proportion written as A : B = C : D. You choose one term as the unknown, provide the other three terms, and the calculator finds the unique value that makes both ratios equal. It then verifies the result in three complementary ways: by comparing the quotient of each ratio, by comparing the cross-products, and by showing the scale factor between the left and right pairs. It is an exact algebraic identity for finite inputs, subject to ordinary floating-point precision for very large or highly detailed decimals. It does not decide whether the quantities are comparable, whether their units are appropriate, or whether a proportional model is sensible for a real-world situation.
When to use it
Use the calculator when scaling a recipe, resizing a drawing or model, converting a known rate to a new quantity, checking corresponding sides of similar shapes, or verifying homework involving equivalent fractions. It is especially useful when the missing term is not obvious or when decimals make mental cross-multiplication inconvenient. OpenStax explains that a ratio compares quantities and may be written with a colon or as a fraction in its ratios and rates lesson.
How to calculate
- The calculator opens with a complete demonstration: 3 : 8 = 27 : 72. The result is already calculated, and the Excel workbook is immediately available.
- Use Solve for to select A, B, C, or D. The selected field becomes read-only because it is the result; the other three fields become editable inputs.
- Replace the editable demonstration values with your own numbers. Use a decimal point for decimals. Standard comma grouping such as 1,250.5 is accepted, but decimal-comma input such as 1,5 is rejected to prevent ambiguity.
- Read the solved term first, then review the quotient, scale factor, simplified ratio, cross-product, and equivalence table. A valid result requires nonzero denominators B and D.
- Select Download Excel to generate a fresh workbook from the current validated controls. The workbook includes Summary, Inputs, and Checks sheets.
- Select Reset to clear the demonstration data. Reset leaves the solve target at D but removes the values and results; Download Excel stays disabled until three complete valid inputs are entered again.
Input guide
Solve for is a required selection with four choices: A, B, C, or D. It determines which algebraic form is used and which field is read-only. For example, choosing D uses D = (B × C) ÷ A. A common mistake is leaving a previously solved value in mind and then overlooking that the selected unknown has changed; the calculator prevents this by clearly marking the calculated field.
A is the left numerator and accepts a finite integer or decimal, including a negative value when the mathematical context permits it. It is required unless A is selected as the unknown. The demonstration value is 3. Increasing A while B and C stay fixed changes the required scale and generally reduces D when D is the unknown. When solving for D, A cannot be zero because it is the divisor.
B is the left denominator. It is required unless B is selected as the unknown, and the completed B value must never be zero. The demonstration value is 8. With A and C fixed and D unknown, a larger B produces a proportionally larger D. The most important mistake to avoid is treating zero as an acceptable denominator.
C is the right numerator. It is required unless C is selected as the unknown. The demonstration value is 27. When solving for D, increasing C increases D in the same proportion. When solving for B, C cannot be zero because the formula divides by C.
D is the right denominator. It is required unless D is selected as the unknown, and the completed D value must be nonzero. In the demonstration it is calculated as 72. When solving for A, D cannot be zero because the formula divides by D. Do not add a percent sign, unit label, or scientific notation; use plain numeric input and keep all four terms in compatible units.
Output guide
Missing ratio term is the primary solved value, labeled with the selected letter. Left ratio A ÷ B and Right ratio C ÷ D are decimal quotients and should agree within numerical tolerance. Scale factor is the multiplier that maps the left pair to the right pair, using D ÷ B as the stable calculation. A negative scale factor means both terms changed sign together; a factor between zero and one means the right pair is a reduced version of the left pair.
Simplified A : B reduces the left ratio only when A and B are safe integers; otherwise it reports that integer simplification is not available. Cross product shows A × D and B × C. Equality of those products is the defining verification for a proportion. The three header pills summarize the solve target, scale factor, and verification state. In the Equivalence checks table, the columns Check, Left side, Right side, and Interpretation show the same relationship as quotient equality, cross-product equality, a common multiplier, and colon notation.
Worked example
With D selected as the unknown, the startup inputs are A = 3, B = 8, and C = 27. Cross-multiplication gives A × D = B × C, so 3D = 8 × 27 = 216. Dividing by 3 gives D = 72. The quotient check is 3 ÷ 8 = 0.375 and 27 ÷ 72 = 0.375. The scale factor is 9 because both 3 × 9 = 27 and 8 × 9 = 72. OpenStax's proportion-solving guide explains why equal ratios have equal cross-products.
How the proportion formula works
A proportion states that two fractions are equal: A/B = C/D. When B and D are nonzero, multiplying both sides by B and D gives the cross-product identity A × D = B × C. Each solve mode isolates a different term: A = BC/D, B = AD/C, C = AD/B, or D = BC/A. The calculator checks the divisor before computing so it does not silently create an undefined or non-unique result.
Common mistakes and useful checks
The most frequent error is reversing one ratio, such as comparing width to height on the left but height to width on the right. Another is using a zero denominator, which makes the ratio undefined. Input formatting can also cause errors: this calculator uses a decimal point and accepts commas only as standard thousands separators. For geometry, corresponding sides of similar figures must be paired in the same order; OpenStax's similar triangles section describes how equal corresponding-side ratios are used.
For a quick reasonableness check, estimate the scale factor before relying on the exact result. If C is roughly ten times A, D should be roughly ten times B. Then confirm that the two quotient cards match and that the cross-product card shows equal values. These checks catch swapped terms and misplaced decimal points without changing the underlying calculation.