Ratio Calculator

Simplify A : B, or find the missing X in A : B = C : X. Zeros and invalid values are handled in the status line.

Last updated: October 4, 2026

Tool

This tool will load here.

What this calculator does

A ratio compares two parts. 12 : 18 means twelve of the first for eighteen of the second. Those parts reduce to 2 : 3 by dividing by 6. A proportion says two ratios are equal: 2 : 5 = 8 : X, so X is 20. A ratio calculator that tries to become a general algebra solver hides those two jobs. This page keeps them as two modes: simplify A : B, and find X in A : B = C : X.

Simplification uses integer reduction after decimals are scaled. 1.5 : 2.5 becomes 3 : 5. The missing-term mode uses X = (B × C) ÷ A and shows an integer when the division is exact, or a reduced fraction when it is not. A cannot be 0 in that mode, because the proportion would divide by zero. 0 : 0 is not a ratio.

Ratios are kin to fractions and to GCD. Reducing 12 : 18 is the same gcd step you would use on 12/18. Cross-links: the Fraction Calculator for arithmetic on fractions, and the GCD & LCM Calculator when you only need the divisor or multiple.

How to use

  1. Choose Simplify A : B or Find X in A : B = C : X.
  2. Enter A and B. In the second mode, also enter C. The C field appears only then.
  3. Calculate. Example uses 12 : 18 or 2 : 5 = 8 : X depending on the mode.

Labels stay A, B, and C so the proportion is readable. The result is a single line: either a reduced ratio or X = …

Formula

Simplify: scale A and B to integers, then divide by gcd(|A|, |B|). Proportion: A/B = C/X, so X = B×C / A, then reduce the fraction B×C over A. That is the relationship between a ratio and a proportion: a proportion is two equal ratios. This is not a system-of-equations solver and not a three-part recipe mixer.

Example

Simplify 12 : 18 → 2 : 3. Simplify 0 : 4 → 0 : 1. Find X for 2 : 5 = 8 : X → X = 20. Find X for 2 : 5 = 3 : X → X = 15/2. A = 0 in missing mode is rejected. 0 : 0 is rejected.

12 : 18 ÷ 6 = 2 : 3
2 / 5 = 8 / X → X = 20

Limits

  • Two-part ratios only. No A : B : C recipes.
  • No symbolic algebra. Numbers only.
  • Very large products that leave the safe integer range are rejected rather than rounded.
  • Signs are preserved through reduction (negative ratios stay signed).

Recipe scaling is the missing-term mode in disguise. If a mix is 2 parts oil to 5 parts vinegar and you have 8 units of oil, that is 2 : 5 = 8 : X for vinegar. If you instead know the total volume, you are splitting a whole into parts, which is a different setup: you need the sum of the parts first. This page does not take a total and a ratio in one step, because that would hide whether X is a part or a whole.

To add or divide the fractions that sit behind a ratio, open the Fraction Calculator. To see only gcd(12, 18) or lcm(12, 18), use the GCD & LCM Calculator.

On this page

Related guides

Related solutions

Need another tool ?

Open the free tools — no signup.

FAQs

newsletter signup

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Innovative Solutions For Modern Needs
Copyright © 2026 Yallasolve. all rights reserved.