Simplify ratios to lowest whole numbers, scale ratios to target totals, and solve equivalent ratio problems with step-by-step math.
Click "Calculate" to compute ratios.
A baker wants to scale a cake recipe from 4 servings to 14 without altering the flavor profile. An architect converts a 1:50 floor plan measurement into actual site dimensions. A graphic designer resizes a 1920×1080 banner image while maintaining aspect ratio to avoid distortion. Each task requires working with ratios—mathematical comparisons between two or more quantities.
A ratio expresses how much of one quantity exists relative to another. The standard mathematical notation uses a colon, such as A : B, or a fraction A / B. Reducing a ratio means expressing the comparison using the smallest possible whole numbers. For instance, comparing 12 cups of flour to 18 cups of sugar simplifies to 2 : 3 after dividing both numbers by their greatest common divisor (6).
This calculator relies on the classic Euclidean algorithm to compute the greatest common divisor (GCD) for integer ratios. When decimal ratios are provided, the engine scales all terms by powers of 10 to convert them into whole numbers before executing GCD reduction. For equivalent ratio equations of the form A : B = C : D, the tool applies cross-multiplication: A × D = B × C. The rest of this guide covers the computational engine, step-by-step math, and real-world applications across design, science, and engineering.
When you initiate a calculation, the engine inspects the active tab mode. Mode 1 handles two-part or three-part ratio simplification. Mode 2 scales a base ratio to a target total quantity. Mode 3 solves for a missing variable in an equivalent ratio statement.
To reduce a two-part ratio A : B to lowest whole numbers, the engine first calculates GCD(A, B) using Euclidean division:
function gcd(a, b) {
a = Math.abs(a);
b = Math.abs(b);
while (b) {
let t = b;
b = a % b;
a = t;
}
return a;
}
Once g = GCD(A, B) is determined, the reduced terms are A' = A / g and B' = B / g. For example, given 24 : 36, the Euclidean loop finds GCD(24, 36) = 12. Dividing 24 and 36 by 12 produces the reduced ratio 2 : 3.
For scaling a ratio A : B to a new target total T, the formula calculates individual parts relative to the sum of parts: Part A = T × (A / (A + B)) and Part B = T × (B / (A + B)). If A = 2, B = 3, and target total T = 500, the sum is 5. Part A equals 500 × (2/5) = 200, and Part B equals 500 × (3/5) = 300.
For equivalent ratio solving A : B = C : D with one unknown term, cross-multiplication isolates the missing variable: D = (B × C) / A, C = (A × D) / B, B = (A × D) / C, or A = (B × C) / D.
Culinary arts and commercial baking. A chef scaling a recipe from 6 portions to 25 portions uses the ratio scaler to adjust ingredients proportionally. Entering a base ratio of 2 parts butter to 5 parts flour scaled to a new target batch total prevents texturing mistakes caused by improper ingredient ratios.
Graphic design and video editing. Video producers constantly work with aspect ratios such as 16:9, 4:3, and 21:9. When rendering custom video resolutions like 2560 width, the equivalent ratio solver determines the exact height (1440) needed to maintain a pristine 16:9 display aspect ratio without stretching imagery.
Architecture and blueprint scaling. Draftspersons use scale ratios like 1:100 or 1:48 (1/4 inch equals 1 foot). The ratio tool allows builders to convert measured blueprint lengths into real-world building dimensions instantly, verifying wall spans before cutting timber.
Chemistry and solution preparation. Laboratory technicians prepare chemical solutions using molar or volume ratios. Mixing 3 parts acid to 7 parts distilled water to create 500ml of reagent requires scaling the ratio so that 150ml of acid is added to 350ml of water.
Financial analysis and equity splits. Business partners splitting profits according to capital investment ratios (e.g., $30,000 : $45,000 : $15,000) simplify the equity distribution down to a clean 2 : 3 : 1 ratio, making annual dividend allocations straightforward.
Model building and 3D printing. Hobbyists converting physical dimensions of prototype vehicles down to 1:24 or 1:72 scale use ratio equations to calculate scaled dimensions for custom 3D printed parts.
Convert decimal inputs to integer equivalents automatically. If you enter 0.75 : 1.25, the tool scales both values by 100 to yield 75 : 125, then reduces via GCD to 3 : 5. You do not need to convert decimals manually before using the tool.
Double-check total targets when scaling mixtures. Ensure your target amount uses the same units (grams, liters, ounces) for all terms. Mixing units will distort your scaled output.
If you need to solve proportions with four distinct fraction terms, use our dedicated Proportion Calculator. For finding statistical averages across multiple scaled datasets, pair this tool with our Average Calculator.
When working with aspect ratios, remember that standard HD video is 16:9 (1.777:1), ultrawide monitors are 21:9 (2.333:1), and classic SD photography uses 3:2 or 4:3. Entering width and height into the simplify mode reveals the standard aspect ratio format.
The core algorithm executes locally in client-side JavaScript using double-precision floating-point arithmetic. GCD reductions use iterative Euclidean loops that terminate within O(log(min(a,b))) steps.
| Feature | This Tool | Hand Calculation | Spreadsheet GCD() |
|---|---|---|---|
| Algorithm | Euclidean GCD + Cross-mul | Prime factor search | Iterative GCD |
| Multi-part Support | 2 and 3 terms | Manual pairwise | Requires nest GCD |
| Decimal Parsing | Auto scaling (10ⁿ) | Manual fraction conversion | Integer only |
| Execution Time | <1ms | 1-3 minutes | <1ms |
| Privacy | Client-side browser | Local paper | Local file |
| Cost | Free | Free | License required |
For a three-part ratio A : B : C, the tool calculates g1 = GCD(A, B) and then computes g = GCD(g1, C). It then divides A, B, and C by g. For example, 12 : 18 : 30 has GCD(12, 18) = 6 and GCD(6, 30) = 6, reducing to 2 : 3 : 5.
Ratios compare non-zero quantities. Entering zero for all terms or setting a denominator to zero in proportion mode creates mathematically undefined conditions, which triggers an inline validation alert.
In the equation A : B = C : D (or A / B = C / D), multiplying opposite terms yields A × D = B × C. Dividing both sides by the known term isolates the unknown value (e.g., D = (B × C) / A).
An aspect ratio is a specific type of ratio that describes the proportional relationship between the width and height of an image, screen, or digital asset. Common examples include 16:9 for widescreen video and 1:1 for square social media posts.
Ratios typically represent physical measurements or positive quantities. However, if negative numbers are entered, the calculator preserves the negative signs during simplification while normalizing signs to the leading term.
Proportion Calculator — Solves cross-multiplication equations for equal ratios. Ideal for complex multi-step conversions where three known values determine a fourth.
Percentage Calculator — Calculates percentage of totals, percentage differences, and relative growth. Use it alongside ratio scaling to convert ratio parts into percentage shares (e.g., 2 : 3 becomes 40% and 60%).
Fraction Calculator — Performs arithmetic (+, -, ×, ÷) on proper and mixed fractions. Ratios like A : B are equivalent to fractions A / B, allowing direct conversion between formats.