Ratio to Percentage Calculator
Ratio to percentage conversion turns the parts of a ratio such as 2:3 or 3:5:2 into the share each part makes of the total. It also covers percent to ratio, percentage to ratio and ratio to percent by hand, plus the formula, worked examples and code.
Example values are filled in. Replace them with your own.
Shares
20% : 80%
Working
- Total of the 2 parts = 5
- 1 ÷ 5 = 0.2
- 0.2 × 100 = 20%
- 4 ÷ 5 = 0.8
- 0.8 × 100 = 80%
- Part 1
- 20%
- Part 2
- 80%
- Total of the parts
- 5
- Exact shares add up to
- 100%
- Rounded shares add up to
- 100%
Ratios are read part to part: 3:1 is 75% and 25%.
A mix is 2 parts concentrate to 3 parts water, or a budget splits 3:5:2 across three teams. What share is each part? Add the parts to get the total, divide each part by it, then multiply by 100: 2:3 is 40% and 60%.
Enter a two-part or three-part ratio into this ratio to percentage calculator and it shows each share as a percentage, with the total and the working. You can also go the other way and turn a percentage into a ratio.
How ratio to percentage works
Quick answer: add the parts of the ratio to get the total, divide each part by the total, then multiply by 100. For 2:3 the total is 5, so the shares are 2 ÷ 5 = 40% and 3 ÷ 5 = 60%.
How to convert a ratio to a percentage
- Add the parts of the ratio to get the total number of parts.
- Divide each part by the total to get its share as a decimal.
- Multiply each share by 100 and add the percent sign.
A ratio compares parts. A percentage compares each part with the whole, and the whole is the sum of the parts. That is why the first step is to add them. The shares always add up to 100%.
Ratio to percentage formula
Share of a part = part ÷ (sum of all parts) × 100. The ratio to percent formula is the same for any number of parts, so a three-part ratio such as 3:5:2 uses a total of 3 + 5 + 2 = 10.
Three-part ratios
For three parts, divide each part by the same total, the sum of all three. The method does not change; there is one more division.
Part to part and part to whole
Ratios are normally read part to part, so 3:1 means three parts to one part, a total of four, and shares of 75% and 25%. It does not mean 300%. If you are given a ratio of a part to the whole, such as 3 to 4, the whole is already the second number and the share is 3 ÷ 4 = 75%. The calculator reads every ratio as part to part.
Percent to ratio
To go from percent to ratio, write the share and the remainder as a ratio, then simplify. A share of 25% leaves 75%, so the ratio is 25:75, which becomes 1:3 after dividing both numbers by their greatest common factor. For 40% the ratio is 40:60, which is 2:3, and for 50% it is 50:50, which is 1:1. Switch the direction in the calculator to convert a percentage into a ratio; it then works as a percentage to ratio calculator. A share with decimals, such as 33.33%, gives a long ratio (3333:6667), so a whole-number percentage gives a more readable one.
Ratio to percentage examples
Example 1: a two-part ratio, 2:3
Given
Step 1
The total is 2 + 3 = 5.Step 2
Divide: 2 ÷ 5 = 0.4 and 3 ÷ 5 = 0.6.
Answer
Example 2: a ratio with a small first part, 1:4
Given
Step 1
The total is 5.
Answer
Example 3: a three-part ratio, 3:5:2
Given
Step 1
The total is 3 + 5 + 2 = 10.
Answer
Example 4: a three-part ratio that does not divide evenly, 1:2:3
Given
Step 1
The total is 6.
Answer
Example 5: mixing ratios, 1:9
Given
Answer
Example 6: percentage to ratio, 25%
Given
Step 1
A 25% share leaves 75%.
Answer
Example 7: a three-part ratio with decimal shares, 1:3:4
Given
Step 1
The total is 1 + 3 + 4 = 8.
Answer
Common ratios as percentages
Ratios that do not divide 100 evenly, such as 1:2 and 1:5, are rounded to two decimal places.
| Ratio | First part | Second part |
|---|---|---|
| 1:1 | 50% | 50% |
| 1:2 | 33.33% | 66.67% |
| 1:3 | 25% | 75% |
| 1:4 | 20% | 80% |
| 1:5 | 16.67% | 83.33% |
| 1:9 | 10% | 90% |
| 2:3 | 40% | 60% |
| 3:2 | 60% | 40% |
| 3:4 | 42.86% | 57.14% |
| 1:19 | 5% | 95% |
| 1:99 | 1% | 99% |
Ratio to percentage practice questions
Try these five before checking the answers. Round to two decimal places where needed.
- Convert 3:7 to percentages.
- Write 60% as a ratio in its simplest form.
- Convert the three-part ratio 2:3:5 to percentages.
- A drink is mixed 1 part syrup to 4 parts water. What percent is syrup?
- A class has boys to girls in the ratio 7:8. What percent are girls?
Practice answers
Each answer starts with the total of the parts.
- The total is 10, so the shares are 30% and 70%.
- 60% leaves 40%, so the ratio is 60:40, which is 3:2.
- The total is 10, so the shares are 20%, 30% and 50%.
- The total is 5, so syrup is 1 ÷ 5 = 20%.
- The total is 15, so girls are 8 ÷ 15 = 53.33% and boys are 46.67%.
Ratio to percentage code
Both versions reproduce the worked examples above, reject non-numeric input and refuse a ratio whose parts are all zero.
JavaScript
function finite(name, v) { if (typeof v !== "number" || !Number.isFinite(v)) throw new TypeError(`${name} must be a finite number`);}function places(decimals) { if (!Number.isInteger(decimals) || decimals < 0 || decimals > 10) throw new RangeError("decimals must be a whole number from 0 to 10"); return decimals;}// [2, 3] -> [40, 60]; [3, 5, 2] -> [30, 50, 20]export function ratioToPercent(parts, decimals = 2) { if (!Array.isArray(parts) || parts.length < 2) throw new TypeError("parts must be an array of at least two numbers"); parts.forEach((p) => { finite("part", p); if (p < 0) throw new RangeError("parts must not be negative"); }); const d = places(decimals); const total = parts.reduce((a, b) => a + b, 0); if (total === 0) throw new RangeError("the parts must not all be 0"); return parts.map((p) => Number(((p / total) * 100).toFixed(d)));}function gcd(a, b) { return b === 0 ? a : gcd(b, a % b);}// 25 -> [1, 3] (part to rest, simplified). Accepts up to 2 decimal places.export function percentToRatio(percent) { finite("percent", percent); if (percent <= 0 || percent >= 100) throw new RangeError("percent must be above 0 and below 100"); const p = Math.round(percent * 100); if (Math.abs(percent * 100 - p) > 1e-9) throw new RangeError("percent must have at most 2 decimal places"); const rest = 10000 - p; const g = gcd(p, rest); return [p / g, rest / g];}Python
from decimal import Decimal, ROUND_HALF_UPfrom math import gcd, isfinitedef _num(name, v): if isinstance(v, bool) or not isinstance(v, (int, float, Decimal)) or not isfinite(float(v)): raise ValueError(f"{name} must be a finite number") return Decimal(str(v))def _round(x, decimals): if not isinstance(decimals, int) or isinstance(decimals, bool) or not 0 <= decimals <= 10: raise ValueError("decimals must be a whole number from 0 to 10") return x.quantize(Decimal(1).scaleb(-decimals), rounding=ROUND_HALF_UP)def ratio_to_percent(parts, decimals=2): if not isinstance(parts, (list, tuple)) or len(parts) < 2: raise ValueError("parts must be a list of at least two numbers") nums = [_num("part", p) for p in parts] if any(n < 0 for n in nums): raise ValueError("parts must not be negative") total = sum(nums) if total == 0: raise ValueError("the parts must not all be 0") return [_round(n / total * 100, decimals) for n in nums]def percent_to_ratio(percent): p = _num("percent", percent) if not 0 < p < 100: raise ValueError("percent must be above 0 and below 100") scaled = p * 100 if scaled != scaled.to_integral_value(): raise ValueError("percent must have at most 2 decimal places") a = int(scaled) b = 10000 - a g = gcd(a, b) return a // g, b // gratioToPercent([3, 5, 2]) returns 30, 50 and 20, the three-part example, and percentToRatio(40) returns 2 and 3. Round only for display. Rounded shares may not add to 100: ratioToPercent([1, 1, 1]) returns 33.33 three times, which is 99.99, so the calculator shows the exact total beside the rounded shares. The Python version rounds half up, which is the usual school convention, and returns Decimal values, so 40 prints as 40.00.
Privacy and input safety
- Values are calculated in your browser. The numbers you enter are not sent to a server or stored.
- Fields accept numbers only. Text, empty fields, NaN and Infinity are rejected with a message, and nothing you type is ever evaluated as code.
- A ratio needs at least two parts. Negative parts are rejected, because a part cannot be less than nothing.
- A part of 0 is allowed, as in 0:4, which gives 0% and 100%. A ratio with every part at 0 is refused, because its total is zero.
- Decimal parts are accepted, so 1.5:2.5 gives 37.5% and 62.5%.
- A percentage to convert must be above 0 and below 100, with at most two decimal places, so that the ratio stays readable.
- A comma followed by exactly three digits is read as a thousands separator, so 1,200 is 1200. Any other comma is a decimal point, so 12,50 is 12.50, and a number starting with 0, such as 0,500, is read as a decimal. Mixed formats such as 1.234,5 and ambiguous entries such as 1,2,3 are refused instead of guessed. Spaces, including no-break spaces, between digit groups are ignored.
- Each part has its own field, so a comma is never needed to separate the parts.
Common ratio to percentage mistakes
| Mistake | What goes wrong | What the calculator does |
|---|---|---|
| Dividing the first part by the second | 2:3 as 2 ÷ 3 gives 66.67%, not 40% | Divides by the total of all parts |
| Not adding the parts first | 3:1 read as 300% instead of 75% | Adds the parts first |
| Reading a colon as part to whole | 1:3 as 1/3 gives 33.33%, not 25% | Reads a ratio as part to part |
| Leaving a part out of the total | 3:5:2 with a total of 8 gives 37.5%, not 30% | Uses every part |
| Rounded shares that miss 100% | 1:1:1 shows 33.33% three times, which is 99.99% | Shows the exact total |
| Writing a percent as p:100 | 25:100 entered as a part-to-part ratio gives 20%, not 25% | Uses the remainder, 100 minus the percent |
| Not simplifying | 25:75 left as it is instead of 1:3 | Divides by the greatest common factor |
One split in five forms
The same split, 75% and 25%, written in the forms people ask about:
| Form | Example | How to get the percent | Where to do it |
|---|---|---|---|
| Ratio, part to part | 3:1 | 3 ÷ (3 + 1) × 100 | This page |
| Percentage to ratio | 75% | 75:25, simplified to 3:1 | This page |
| Fraction | 3/4 | Divide, then multiply by 100 | Fraction to percent calculator |
| Decimal | 0.75 | Multiply by 100 | Decimal to percent calculator |
| Percent back to fraction | 75% | Write over 100 and simplify | Percent to fraction calculator |
Frequently asked questions
How do I convert a ratio to a percentage?
How do I convert a percentage to a ratio?
How do I write a ratio as a percentage without a calculator?
How do I convert a three-part ratio to percentages?
Is a ratio of 3:1 the same as 300%?
Why do my shares add up to 99.99%?
How do I convert a ratio to a percentage in Excel?
=A2/(A2+B2) and format the cell as a percentage. For any number of parts across A2 to C2, use =A2/SUM($A$2:$C$2) and fill right, keeping the range anchored.