A ratio is a way of comparing quantities. It can describe how much of one quantity there is relative to another, how a total should be divided, or how two dimensions should scale together. Ratios appear in recipes, maps, measurements, financial analysis, image dimensions, design, and many everyday calculations.
This Ratio Calculator combines several related ratio calculations in one place. You can solve a proportion such as 3:4 = 6:?, simplify two- or three-part ratios, calculate a unit rate, divide a total according to a ratio, resize dimensions while preserving an aspect ratio, and calculate a golden-ratio division.
The calculator also shows the mathematical steps behind the result. That makes it useful when you need more than an answer: you can check the cross-multiplication, verify a greatest common divisor, see how a total is partitioned, or confirm that resized dimensions preserve the original ratio.
A ratio does not have to be written only with a colon. A comparison such as 3 to 4, 3:4, and 3/4 expresses the same numerical relationship when the quantities are being compared in the same order.
What Is a Ratio?
A ratio compares two or more quantities in a specified order.
For two quantities, a ratio can be written as:
For example, if a box contains 3 red balls and 4 blue balls, the ratio of red balls to blue balls is:
The order matters. A ratio of 3:4 is not the same comparison as 4:3.
Ratios can be used for part-to-part comparisons, part-to-whole comparisons, and whole-to-part comparisons. A fraction is often used as the numerical representation of a ratio, but the two ideas are not identical: a ratio emphasizes comparison, while a fraction commonly represents a part of a whole.
How to Use This Ratio Calculator
The calculator contains several tools, so choose the section that matches the problem you are trying to solve.
Solve a Proportion
Use the Proportion Solver when you know three terms in A/B = C/D and need to find the fourth. The calculator can solve for A, B, C, or D.
Simplify a Ratio
Use the Ratio Simplifier for ratios such as 12:18:24. The calculator reduces the terms to their simplest whole-number relationship.
Divide a Total by a Ratio
Use Ratio Partitioning & Amount Divider when a total must be distributed proportionally (e.g. divide 500 in the ratio 2:3:5).
Resize Dimensions & Golden Ratio
Use the Aspect Ratio Resizer when one dimension changes while width-to-height must remain fixed, or find a golden-ratio division according to φ ≈ 1.61803398875.
How to Solve a Proportion
A proportion states that two ratios are equal:
For a valid proportion, cross multiplication gives:
This relationship is the basis for solving the missing term. OpenStax describes the same equivalence: two ratios are proportional exactly when the cross-products are equal.
How Ratios Turn Into a Proportion
Equivalent ratios form a proportion, which can be solved by comparing cross-products.
Example: Solve for D
Suppose: 3/4 = 6/D
Cross multiply: 3D = 4 × 6 ⇒ 3D = 24
Divide by 3: D = 8
So: 3:4 = 6:8. The calculator displays this process step by step.
The calculator supports all four target variables rather than assuming the missing term is always D. The production audit specifically verified all four modes.
Proportion Example: 3:4 = 6:8
Consider: 3:4 = 6:8
Convert to fractions: 3/4 = 6/8
Cross products: 3 × 8 = 4 × 6 ⇒ 24 = 24
Because the cross-products are equal, the two ratios are proportional. The calculator's example uses exactly this relationship and returns 8 when solving the missing fourth term.
Important Conditions When Solving Proportions
Cross multiplication is useful when you actually have two ratios set equal to each other. It should not be applied mechanically to any equation containing fractions.
A denominator of zero is also not allowed in a ratio being treated as a quotient. For example: 3/0 is undefined.
The calculator now validates denominator-zero conditions across all four solving modes rather than silently returning an incorrect finite result.
Zero numerators are different. For example: 0/5 = 0/10 is mathematically meaningful because the denominators are nonzero. This distinction matters when building a reliable ratio calculator.
When your problem is about an unknown exponent or another power relationship rather than a proportional ratio, use the Exponent Calculator for direct exponentiation and exponent-law calculations.
How to Simplify a Ratio
To simplify a whole-number ratio, divide all terms by their greatest common divisor (GCD).
Consider: 12:18:24
The greatest common divisor is: GCD(12,18,24) = 6
Divide every term by 6: 12/6 : 18/6 : 24/6 = 2:3:4
The important rule is that every term must be divided by the same factor. Dividing different terms by different numbers changes the relationship. The current calculator uses exact decimal normalization before GCD reduction when decimal inputs are provided, while leaving already-integer inputs as integers. This avoids the artificial scaling problem that previously produced unnecessarily large intermediate GCDs.
Simplifying Ratios With Decimals
Ratios do not have to begin as whole numbers. For example: 0.75:1.5
Multiply both terms by 100: 75:150. Now divide by their GCD: GCD(75,150) = 75 ⇒ 75:150 = 1:2.
The calculator handles this normalization automatically. The important principle is that multiplying all terms by the same nonzero factor does not change the ratio.
What Is a Unit Rate?
A unit rate expresses one quantity relative to 1 unit of another quantity.
If: 12/18 = 0.666666... then the value per one unit of the denominator is approximately: 0.6667.
The denominator tells you what the "one unit" refers to:
- 180 km / 3 hours = 60 km per hour
- $24 / 6 items = $4 per item
- 12 units / 18 units = 0.6667 of the first quantity per one unit of the second
Khan Academy similarly defines a unit rate as the number of units of the first quantity for every 1 unit of the second quantity. Do not round the calculation prematurely. The displayed 0.6667 is a readable rounded value; the underlying ratio should retain appropriate precision.
Ratio vs Fraction
A ratio and a fraction can use the same notation, but their purpose can differ. For example, 2:5 can also be written 2/5. As a ratio, it may compare 2 red objects with 5 blue objects. As a fraction, 2/5 may represent 2 parts out of a total of 5. This distinction becomes important when calculating percentages or dividing a total. For a part-to-whole calculation: part / total × 100% is the usual structure.
Part-to-Part vs Part-to-Whole Ratios
Suppose there are 2 red balls and 3 blue balls. The red-to-blue part-to-part ratio is: 2:3.
The total number of balls is: 2 + 3 = 5. Therefore the red-to-total part-to-whole ratio is: 2:5, and the red percentage is: 2/5 × 100% = 40%. The wording matters because 2:3 and 2:5 answer different questions.
How to Convert a Ratio to a Percentage
For a two-part ratio A:B, the percentage represented by A is: A/(A+B) × 100%. For example, in 1:4, total parts = 1 + 4 = 5, giving 1/5 × 100% = 20%. The same idea extends naturally to three or more parts.
Dividing a Total in a Ratio
When a total is divided according to a ratio, first determine the total number of ratio parts.
For 2:3:5, the number of parts is: 2 + 3 + 5 = 10.
If the amount to divide is 500, then one ratio part is: 500/10 = 50.
Check: 100 + 150 + 250 = 500. Percentages are: 20%, 30%, 50%. The calculator's partition module uses this exact structure and its production audit confirms the 100/150/250 result and the corresponding 20/30/50 visual distribution.
Partitioning With Two Parts
The same method works when there are only two parts. Suppose 600 must be divided in the ratio 2:1. Total parts = 2 + 1 = 3. One part = 600/3 = 200. Therefore A = 2 × 200 = 400, B = 1 × 200 = 200. The shares add back to the original total: 400 + 200 = 600.
Why the Partition Chart Matters
A numerical answer tells you the amount assigned to each part, but a proportional visual makes the relationship easier to scan. For a 2:3:5 split, the segments should occupy 20%, 30%, and 50% respectively. The calculator's partition visual is therefore not decorative. It remains synchronized with the calculated values whenever the total or ratio changes. The audit verified that the segmented partition visualization agrees with the numerical shares.
When you need to convert between fractions, decimals and broader numerical representations rather than compare quantities as ratios, the Fraction Calculator is the more focused tool.
Ratios and Scaling
Ratios are also useful for scale calculations. Suppose a drawing uses 1 cm : 10 m and a measured segment on the drawing is 6 cm. A proportion can be established: 1/10 = 6/x ⇒ x = 60. So the corresponding real-world length is 60 m. This is the same mathematical structure used in maps, models and scaled drawings. Ratios and proportions are widely used for scaling problems.
What Is an Aspect Ratio?
An aspect ratio describes the proportional relationship between width and height. It is generally written width:height. For example, 16:9 means that for every 16 units of width, there are 9 units of height. NIST defines aspect ratio as the ratio of width to height for objects such as images, pixels and video frames. The same idea is used in web design, images, video, responsive interfaces, displays and graphics. MDN likewise describes aspect ratio as the proportional relationship between width and height.
How to Calculate an Aspect Ratio
Given Width = 1920, Height = 1080, the ratio is 1920:1080. The greatest common divisor is 120: 1920/120 = 16, 1080/120 = 9. Therefore, the simplified aspect ratio is 16:9.
Resize an Image Without Changing Its Aspect Ratio
Suppose the original dimensions are 1920 × 1080 and you want a new width of 1280 px. The original ratio is 16:9. So the new height must satisfy: 1280/height = 16/9 ⇒ height = 1280 × 9/16 = 720 px. The resized dimensions are 1280 × 720 px. The calculator also reports the total pixel count: 1280 × 720 = 921,600 pixels (approx. 0.92 megapixels).
Common Aspect Ratios
An aspect ratio describes proportion, not a fixed pixel size. A 16:9 image can be 160×90, 1280×720, 1920×1080, or another pair of dimensions with the same ratio.
Why Preserving Aspect Ratio Matters
Changing width and height independently can stretch or compress an image. To preserve the intended proportions, one dimension should be derived from the other using the original ratio. The same principle is used in responsive web design, where maintaining an aspect ratio allows an element to change size without changing its shape. MDN notes that aspect ratio is particularly important for responsive media because it helps preserve intended proportions across different sizes.
Golden Ratio
The golden ratio is the constant:
A line segment is divided in the golden ratio when: (A+B)/A = A/B = φ, where A is the longer segment and B is the shorter segment. This relationship can be derived from φ² − φ − 1 = 0. MathWorld gives the same exact form and decimal approximation.
Golden Ratio Example: Total Length 100
Suppose A + B = 100 and A/B = φ. The longer segment is approximately 61.8034 and the shorter segment is 38.1966. Check: 61.8034 + 38.1966 = 100 and 61.8034 / 38.1966 ≈ 1.618034. The calculator provides both the two segment values and the visual golden-ratio division.
Golden Ratio Is Not the Same as an Ordinary 61:38 Ratio
The golden ratio is an irrational mathematical constant, so values such as 61.8034:38.1966 are rounded decimal representations. They approximate the exact relationship A/B = φ. This distinction matters when the calculator displays a finite number of decimal places: the total can be exact while the displayed segment values are rounded for readability.
How the Ratio Calculator Helps You Check a Result
A good ratio calculation should be easy to verify:
- For a proportion:
A/B = C/D ⇒ A×D = B×C. - For a simplified ratio: divide original terms by common GCD and confirm proportions remain unchanged.
- For a partition:
Share A + Share B + Share C = Total. - For an aspect-ratio resize:
New Width / New Height = Original Width / Original Height. - For the golden ratio:
A + B = TotalandA / B ≈ 1.61803398875.
The calculator's step-by-step output is designed around these verification relationships.
Common Ratio Calculation Mistakes
When your ratio calculation is part of a larger numerical problem, the Scientific Calculator can help check the arithmetic while the Ratio Calculator handles the proportional relationship itself.
Ratio, Rate and Proportion: What Is the Difference?
A ratio compares quantities. A rate compares quantities with different units, such as kilometers per hour or dollars per kilogram. A unit rate expresses that rate relative to one unit of the second quantity. A proportion states that two ratios are equal.
Understanding this terminology makes it easier to choose the correct calculator mode.
Ratio Calculator Examples
These are not arbitrary examples; they correspond to the calculator's independently audited golden cases.
What Makes a Ratio Calculator Reliable?
A useful ratio calculator should do more than perform one division. It should preserve the relationship between terms, validate invalid inputs, retain numerical precision internally, show the mathematical method, and keep visualizations and exports synchronized with the current calculation.
This calculator's production audit specifically verified all four proportion-solving targets, ratio simplification, decimal normalization, partition sums and percentages, aspect-ratio resizing, golden-ratio calculations, step-by-step derivations, visual distribution bars, PDF, Print, CSV, Copy and Share, Save, Load, Delete and Clear All, keyboard accessibility, and responsive layouts from 320px to 1920px.
Saving, Copying and Exporting Your Ratio Calculation
The calculator provides several ways to keep a result:
- Save: stores a calculation for later use.
- Copy Summary: provides a readable text representation.
- Copy LaTeX: is useful when a mathematical expression needs to be placed into notes or documents.
- CSV: can be used when structured calculation data is more useful than a visual report.
- PDF / Print: creates an executive 2-page report without blank whitespace.
- Share: preserves the supported calculation state via URL query parameters.
These outputs correspond to the current inputs and results, not a previously displayed example. The audit verified export parity across the calculation, UI, step-by-step output, visualizations, PDF, CSV, copied output and saved state.
Frequently Asked Questions
25 Verified QuestionsRelated Calculators
Only link the calculators actually associated with this page:
Useful when a ratio needs to be expressed as a percentage or when working directly with percentage relationships.
Useful when the ratio needs to be manipulated as a fraction or when fraction arithmetic is the main task.
Useful for checking broader numerical calculations that accompany a ratio problem.
Mathematical Reference Notes
A useful ratio calculation is not just about obtaining a number; it is about preserving the mathematical relationship represented by that number.