Ratio Calculator
Simplify, scale, solve or split a ratio with exact integer reduction.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
The ratio 10:15 reduces to 2:3.
How it works
- Read the terms for the selected mode.
- Scaled any decimal terms to integers, then reduced by the greatest common divisor or applied the proportion.
- Rounded to the documented precision (12 significant digits for simplification, the selected decimals for a split).
10:15 = 2:3 (gcd 5)- The two terms cannot both be zero; a denominator of zero is rejected with a field message.
Methodology
- Scale decimal terms to integers by the largest number of decimal places present.
- Simplify by dividing both terms by their greatest common divisor.
- Solve a proportion with cross-multiplication: x = b·c/a.
- Split a total by the ratio shares: partA = total·a/(a+b), partB = total − partA.
Usage
- Choose the ratio operation: simplify, scale, solve or split.
- Enter the two ratio terms and, for scale/solve/split, the factor, the third term or the total.
- Read the resulting ratio, the missing term or the two shares.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
Simplify
{
"mode": "simplify",
"a": 10,
"b": 15
}Scale
{
"mode": "scale",
"a": 2,
"b": 3,
"factor": 4
}Solve
{
"mode": "solve",
"a": 2,
"b": 3,
"c": 4
}Split
{
"mode": "split",
"a": 1,
"b": 3,
"total": 100
}Limitations
Ratios versus percentages
A ratio compares parts directly (2:3), while a percentage expresses a part of a whole out of 100. Simplifying a ratio keeps the proportion and makes the smallest integer terms visible.
Frequently asked questions
- How is the ratio reduced?
- Decimal terms are first scaled to integers, then both terms are divided by their greatest common divisor, so 10:15 becomes 2:3 exactly.
- What does the solve mode do?
- It completes the proportion a:b = c:x by cross-multiplication, returning x = b·c/a. The first term must be non-zero.
Sources
- ISO 80000-2:2019 Quantities and units — Part 2: Mathematics — ISO
- Ratio — Wolfram MathWorld — Wolfram Research
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.