Ratio Calculator

Solve for the missing value in a proportion, simplify ratios to lowest terms, compare two ratios, scale ratios up or down, and convert ratios to fractions, decimals, and percentages. Free, private, and runs entirely in your browser.

Solve for the Missing Value

Enter three values from a proportion A : B = C : D and click Solve. Leave one field blank to find its value.

Cross-multiply: A × D = B × C. Then divide by the coefficient of the unknown.
:
=
:

What is a ratio?

A ratio is a way of comparing two or more quantities by division. It tells you how many times one value contains, or is contained within, another. When you write a ratio like 3 : 2, you're saying "for every 3 units of the first quantity, there are 2 units of the second."

Ratios appear everywhere: recipes (flour to sugar), maps (1 cm on the map = 1 km in real life), finance (debt-to-equity ratio), business (profit margin), and even in screen resolutions (16:9). They're one of the most practical math concepts you'll use in everyday life — which is why having a reliable ratio calculator saves so much time.

Every ratio can be written three ways: as A : B (with a colon), as a fraction A / B, or as a decimal. This calculator handles all of them, plus scales, simplifies, and compares ratios in any format.

How to use the ratio calculator

This calculator has five modes. Pick the one that matches your problem:

  1. Solve for X: Enter three values from a proportion A : B = C : D and leave one blank. The calculator finds the missing value and shows the step-by-step cross-multiplication.
  2. Simplify: Enter any ratio (two or three terms, including decimals) and get its simplest form. The calculator finds the GCD and divides all terms by it.
  3. Compare: Enter two ratios and find out whether they're equivalent. You get the cross-multiplication check and the decimal comparison.
  4. Scale: Multiply a ratio by any factor to scale it up or down. Perfect for recipes, maps, and models.
  5. Convert: Turn a ratio into a fraction, decimal, percentage, simplified form, and the "A as fraction of total" value.

All results appear instantly as you type. Click any output card to copy its value to your clipboard.

Ratio formulas used by this calculator

Proportion (solve for X)
A : B = C : D ⟺ A × D = B × C

D = (B × C) / A
Simplify a ratio
Divide all terms by their GCD (greatest common divisor).
12 : 18 → GCD(12, 18) = 6 → 2 : 3
Equivalent ratios (cross-multiplication)
A : B and C : D are equivalent ⟺ A × D = B × C
Scale a ratio
(A : B) × k = (A × k) : (B × k)
Ratio to decimal and percentage
Decimal = A / B
Percentage = (A / B) × 100

Why use this ratio calculator?

Five tools in one

Solve proportions, simplify, compare, scale, and convert ratios — all without switching pages or opening a calculator app.

Step-by-step solutions

Every result comes with the exact math used to get there. Perfect for homework, teaching, and verifying your own work.

Handles decimals and 3-term ratios

Not just whole numbers. Enter decimals like 1.5 : 2.5 or three-term ratios like 2 : 3 : 5 — the calculator handles both.

Click-to-copy outputs

Copy any result — fraction, decimal, percentage, simplified form — with a single click.

100% private

Everything runs in your browser. No numbers are sent to any server. Close the tab and it's gone.

Works offline

Once the page loads, you can use the calculator without an internet connection. Perfect for exam prep.

Real-world uses for a ratio calculator

Cooking and baking

Recipes are ratios. If a cake recipe calls for 2 cups flour : 1 cup sugar and you want to double it, scale the ratio by 2 to get 4 : 2. If you want to halve it, scale by 0.5. The ratio calculator does this in one click.

Shopping and pricing

When comparing product sizes, the ratio of price to quantity tells you which is the better deal. If a 500 g pack costs $4.50 and a 750 g pack costs $6.75, the ratios 4.50 : 500 and 6.75 : 750 are equivalent — meaning they're priced the same per gram.

Maps and scale drawings

A map with a 1 : 50,000 scale means 1 cm on paper equals 50,000 cm (500 m) in real life. If you measure 4 cm on the map, that's 4 × 50,000 = 200,000 cm = 2 km. The scale mode handles this instantly.

Business and finance

Financial ratios like price-to-earnings (P/E), debt-to-equity, and current ratio compare two values. Understanding ratios is essential for comparing companies, analysing investment opportunities, and evaluating financial health.

Education

Ratio problems are a standard part of middle school and high school math. Whether you're solving proportions in algebra, comparing ratios in statistics, or scaling geometric figures, this calculator gives you the answer and the reasoning.

Everyday life

Mixing paint, diluting cleaning products, adjusting screen resolutions, sizing images, and splitting a bill — ratios are everywhere. Having a calculator that handles them accurately saves you from mental arithmetic errors.

Common ratio conversions

Here's a quick reference for some of the most common ratios and their equivalent fraction, decimal, and percentage forms.

Ratio Fraction Decimal Percentage Simplest form
1 : 11/11.0100%1 : 1
1 : 21/20.550%1 : 2
1 : 31/30.333…33.33%1 : 3
1 : 41/40.2525%1 : 4
1 : 51/50.220%1 : 5
2 : 32/30.666…66.67%2 : 3
3 : 43/40.7575%3 : 4
2 : 52/50.440%2 : 5
3 : 53/50.660%3 : 5
4 : 54/50.880%4 : 5
5 : 65/60.833…83.33%5 : 6
7 : 87/80.87587.5%7 : 8

Frequently asked questions

A ratio is a way of comparing two or more quantities by division. It shows how many times one value contains or is contained within another. For example, a ratio of 3:2 means the first quantity is 1.5 times the second.
A proportion is an equation stating that two ratios are equal, like A:B = C:D. To solve for a missing value, cross-multiply: A × D = B × C. Then divide by the coefficient of the unknown to find it. The "Solve for X" mode does this automatically and shows every step.
To simplify a ratio, divide all terms by their greatest common divisor (GCD). For example, 12:18 simplifies to 2:3 because the GCD of 12 and 18 is 6. The "Simplify" mode does this automatically, including for three-term ratios and decimals.
Two ratios A:B and C:D are equivalent if A × D = B × C. This is called cross-multiplication. You can also convert both ratios to decimals and compare — if the decimals are equal, the ratios are equivalent. The "Compare" mode does both checks and gives you a clear verdict.
A fraction compares a part to a whole (e.g., 3/4 means 3 parts out of 4 total). A ratio compares two parts or two quantities of the same kind (e.g., 3:4 means for every 3 of one thing, there are 4 of another). Every ratio can be written as a fraction, but not every fraction is naturally a ratio.
Yes. Ratios can compare three or more quantities, like 2:3:5 for a three-part mixture. The math is the same — multiply or divide all terms by the same number to scale or simplify. The "Simplify" mode supports three-term ratios.
A ratio of 1:0 is undefined because you cannot divide by zero. It would imply comparing a quantity to nothing, which has no meaningful ratio. Some contexts use 1:0 informally to mean "all of one, none of the other." This calculator will show an error if you try to use 0 in the denominator.
Yes, completely free. No signup, no ads interfering with the tool, no hidden charges. Use it as many times as you want.
Absolutely. Everything runs in your browser. The numbers you enter never leave your device — no server, no logs, no tracking.