Ratio Calculator
Simplify any A : B ratio to lowest whole-number terms using the Greatest Common Divisor (GCD), and calculate the A ÷ B quotient and part-to-whole percentage shares.
Ratio Calculator
Enter values Calculate|
How Ratios Are Simplified Using Euclidean GCD
A ratio ($A : B$) compares the relative magnitude of two quantities measured in the same unit. To reduce any ratio to its simplest irreducible form, the Ratio Calculator applies Euclid’s algorithm to find the Greatest Common Divisor ($\text{GCD}$) of $A$ and $B$ (automatically scaling terminating decimals to integers first), and divides both terms by $\text{GCD}(A, B)$:
$$A : B = \left(\frac{A}{\text{GCD}(A, B)}\right) : \left(\frac{B}{\text{GCD}(A, B)}\right), \qquad \text{Unit Rate (A per 1 B)} = \frac{A}{B}$$
Because many practical problems require splitting a total pool of $A + B$ according to the ratio $A : B$, the calculator also computes the exact part-to-whole percentage shares:
$$\text{Share A (\%)} = \left(\frac{A}{A + B}\right) \times 100, \qquad \text{Share B (\%)} = \left(\frac{B}{A + B}\right) \times 100$$
Worked Example: Simplifying a 1920 × 1080 Screen Aspect Ratio
Suppose you want to find the aspect ratio of a Full HD 1920 × 1080 display:
- Greatest Common Divisor ($\text{GCD}$): $\text{GCD}(1920, 1080) = \mathbf{120}$.
- Simplified Ratio ($A : B$): $(1920 \div 120) : (1080 \div 120) = \mathbf{16 : 9}$.
- A to B Quotient ($A \div B$): $1920 \div 1080 = \mathbf{1.7778}$ ($1.78 : 1$ widescreen).
- Part-to-Whole Shares: Out of $16 + 9 = 25$ total parts, $A$ represents $\mathbf{64.00\%}$ and $B$ represents $\mathbf{36.00\%}$.
Part-to-Part Ratios vs. Part-to-Whole Fractions
The most common mistake in mixture and recipe calculations is confusing a part-to-part ratio with a part-to-whole fraction. A $1 : 4$ concentrate-to-water dilution ratio means $1\text{ part concentrate}$ mixed with $4\text{ parts water}$, which equals $1 + 4 = \mathbf{5\text{ total parts}}$. Therefore, the concentrate is $\frac{1}{5} = \mathbf{20\%}$ of the total solution—not $\frac{1}{4}$ ($25\%$). For exact rational arithmetic ($+$, $-$, $\times$, $\div$) between two fractions, use our Fraction Calculator, or batch concrete mix proportions in the Cement Calculator.
Scaling Recipes, Map Scales, and Aspect Ratios with GCD
Reducing a ratio A : B to its simplest integer terms via Euclid's Greatest Common Divisor (GCD) algorithm makes proportional scaling effortless across engineering, digital media, and culinary arts. For example, a 3840 : 2160 4K Ultra-HD monitor resolution has a GCD of 240; dividing both dimensions by 240 reveals the familiar 16 : 9 widescreen aspect ratio (unit rate 1.7778 : 1). Similarly, a concrete mix calling for 150 lb cement : 450 lb aggregate simplifies via GCD = 150 to a 1 : 3 mix ratio, where cement represents 1 ÷ (1 + 3) = 25% of the dry blend and aggregate represents 75%. Explore related proportional math in our Fraction Calculator and Cement Mix Calculator.