Skip to main content
MathKit

Ratio Calculator

Enter two values A and B to compute the ratio A:B expressed as a decimal (A ÷ B).

Calculator

Use the Ratio Calculator

Result

—

Formula

A ÷ B

Step-by-step

  1. 1

    Provide A and B

    Enter the two values for the ratio.

  2. 2

    Compute decimal

    Divide A by B to get the decimal ratio.

Worked example

Example input: a: 3, b: 2

Result: 1.5

Related tools

Frequently asked questions

What does the ratio calculator return?

The decimal value of A divided by B: entering 10 and 4 gives 2.5, the same fact written as the ratio 5:2. Decimals are the standard single-number way to state a ratio precisely. Reports and dashboards quote the decimal form directly, which is why this exact value is what the tool prints.

What happens when B is zero?

No ratio exists — dividing by zero produces no number. The calculator reflects that by reporting an infinite result rather than inventing a finite value, so treat a zero denominator as invalid input.

Is a ratio the same thing as a fraction?

Numerically yes: 2.5 is 5/2 is 10:4 — one value, three clothing styles. The difference is only presentation: fractions name one quantity, ratios usually compare two of them.

Useful links