Ratio Calculator
Reduce two parts to their simplest integer relationship with the ratio calculator. Decimal parts are exact, and a second mode finds the missing second part in an equivalent ratio.
Check the highlighted fields.
Your numbers
Example inputs. Results update as you type.
Result
2:3
The reduced ratio is 2 : 3. Signs are retained as an algebraic relationship.
No result. Check the fields marked below.
What to check next
- What missing value makes these two fractions equal?
Choose the unknown in A / B = C / D and enter the other three values.
- What is the exact result of an operation on two fractions?
Add, subtract, multiply, or divide two fractions without converting them to rounded decimals.
How the calculation works
Multiplying or dividing both parts by the same nonzero factor preserves a ratio. Decimal parts are first converted exactly to integers with a common scale. Negative ratios retain their signs as algebraic relationships, not physical shares.
Step-by-step solution
- Clear decimal denominators: 12 : 18
- GCD of magnitudes = 6
- Divide both parts: 2 : 3
Relative sizes of the two parts
Examples
Simplify — 2:3
The reduced ratio is 2 : 3. Signs are retained as an algebraic relationship.
- Task
- Simplify A : B
- First part A
- 12
- Second part B
- 18
- Equivalent first part C
- 8
- Clear decimal denominators: 12 : 18
- GCD of magnitudes = 6
- Divide both parts: 2 : 3
Decimal parts — 2:3
The reduced ratio is 2 : 3. Signs are retained as an algebraic relationship.
- Task
- Simplify A : B
- First part A
- 0.5
- Second part B
- 0.75
- Equivalent first part C
- 8
- Clear decimal denominators: 4 : 6
- GCD of magnitudes = 2
- Divide both parts: 2 : 3
Equivalent ratio — 12
The equivalent ratio is 8 : 12.
- Task
- Solve A : B = C : x
- First part A
- 12
- Second part B
- 18
- Equivalent first part C
- 8
- Cross multiply: 12 × x = 18 × 8
- x = 12
One zero part — 0:1
The reduced ratio is 0 : 1. Signs are retained as an algebraic relationship.
- Task
- Simplify A : B
- First part A
- 0
- Second part B
- 8
- Equivalent first part C
- 8
- Clear decimal denominators: 0 : 8
- GCD of magnitudes = 8
- Divide both parts: 0 : 1
How this is calculated
Clear decimal denominators, then divide both integer parts by their positive GCD. For A:B = C:x, x = B × C / A when A ≠ 0.
Integer reduction uses a positive greatest common divisor after the decimal parts have been cleared exactly. Equivalent-ratio answers retain an exact fraction; their decimal presentation can be rounded to 12 places.
Reviewed
Questions
Can a ratio contain a zero part?
A two-part ratio such as 0:8 reduces to 0:1. The pair 0:0 has no defined reduced ratio. A zero denominator is not valid when the ratio is used as a fraction in equivalent-ratio mode.
Why do decimal ratios become integers?
Both parts are scaled by compatible powers of ten, then reduced by their common divisor. The relationship stays exact.
Are negative parts supported?
They are supported as signed algebraic parts. They are not treated as physical portions, so the parts diagram is omitted.
When should I use Proportion instead?
Use Proportion when any one of four positions is unknown. The equivalent-ratio mode here specifically solves the final second part.
The arithmetic is exact for the numbers entered; rounded decimals are approximations. Applying a result to measured or estimated quantities also carries their uncertainty. General mathematical information, not professional advice.
Calculation checks and limits
We tested the exact rational results under the stated conventions with checks every answer must pass and with worked examples. We did not compare it with a separate calculation or an outside program. Measurement uncertainty and the meaning of real-world inputs are not covered by these checks; they require context outside the mathematical model.