About this Ratio Calculator
Ratios compare two quantities, while a proportion states that two ratios are equal (A is to B as C is to D). This calculator helps you solve for the unknown variable 'X' in any proportion, making it perfect for scaling dimensions or ingredients.
Who this calculator is for
- People scaling recipes, drawings, or project measurements.
- Students solving proportion and cross-multiplication problems.
- Anyone who needs to keep two quantities in the same relationship.
When to use it
- Use this calculator when one value in a proportion is missing.
- Use it to scale a recipe, photo, or layout up or down.
- Use it to compare quantities that should stay in the same ratio.
Key assumptions
- The values in each ratio should describe the same kind of quantity, such as width-to-height or cups-to-eggs.
- The relationship is treated as linear, so the same scale factor applies across both ratios.
- A value used as a denominator cannot be zero; zero makes the proportion undefined.
Accuracy and testing
Review formula sources, default test cases, assumptions, unit handling, rounding rules, and changelog for this calculator.
How this calculator works
Inputs explained
A : B
The first known ratio (e.g., 16 : 9 for a widescreen video).
C : D
The second ratio. Enter the missing value as 0 only as a placeholder when solving for that position.
Understanding your results
Example scenarios
Image Resizing
Original is 4:3 (A:B). New width is 800 (C). Solve for Height (D). Formula: 4/3 = 800/D. Result: D = 600.
Recipe Scaling
Recipe calls for 2 cups flour (A) for 3 eggs (B). You have 5 eggs (D). How much flour (C)? Formula: 2/3 = C/5. Result: C = 3.33 cups.
Key Features
- Instant Calculation
- Private & Secure
- Mobile Optimized
Tips & Best Practices
- This is essentially the 'Rule of Three'.
- Always ensure A and C are the same unit type (e.g., width), and B and D are the same unit type (e.g., height).
Glossary of Terms
- Ratio
- The quantitative relation between two amounts showing the number of times one value contains or is contained within the other.
- Proportion
- An equation stating that two ratios are equal.
- Cross Product
- The product of the numerator of one ratio and the denominator of the other.