DoItAl

Data utility

Ratio Calculator

Simplify decimal ratios, find equivalent ratios, solve one missing proportion term and scale to a target. Exact fractions keep large values and repeating decimals clear.

Browser-local • No upload

Loading tool controls…

Local tool controls

Nonnegative ordinary decimals, at most 12 decimal places and 40 characters. Exact fractions use BigInt and GCD reduction. Decimal previews truncate after 12 places and show an approximation marker when needed. Zero/undefined denominator solutions are rejected.

What this tool does

Reduces ratios to integer terms, calculates an equivalent ratio, solves one missing proportion term, or scales both sides to a selected target.

How to use it

  1. Choose simplify, equivalent, proportion or scale.
  2. Enter nonnegative ordinary decimals; in proportion mode leave exactly one of A, B, C and D blank.
  3. Calculate, review the fraction and arithmetic step, then copy the result or clear inputs.

Worked example

12:18 simplifies to 2:3. For 2/3 = 10/D, D is 15. Scaling 16:9 to a left side of 1920 gives 1920:1080.

Processing and explanation

Decimal input is parsed as an exact BigInt fraction. Clearing denominators and dividing by the greatest common divisor produces integer ratio terms. Proportions use A × D = B × C. Scaling multiplies both terms by target divided by the selected source side; fractions stay exact throughout.

Limits and common mistakes

Nonnegative plain decimals only: up to 12 decimal places and 40 input characters, with a leading digit such as 0.5. Scientific notation and negative values are unsupported. 0:0, zero B/D denominators, and ambiguous missing-denominator cases are rejected. Scaling requires a positive chosen source and target. Decimal views truncate after 12 places and mark remaining fractions as approximate.

Privacy and your input

Inputs and results stay in this browser tab. This tool does not upload them, put them in URLs or browser storage, or include them in analytics. Clipboard copies are managed by your browser and operating system.

Frequently asked questions

Can I use decimal ratios?
Yes. For example, 0.5:0.75 simplifies exactly to 2:3.
Why show both a fraction and a decimal?
A value such as 1/3 cannot have a finite exact decimal. The fraction is exact and the 12-place decimal is a truncated preview.
Can either ratio term be zero?
Simplification permits one zero term, but 0:0 is undefined. Proportion denominators and the selected source side for scaling must be positive.

Material content update: