Can one part be zero?
Yes. A ratio such as 0:3 is valid; 0:0 has no defined relative size.
Reduce two non-negative quantities to their simplest whole-number ratio.
Adjust the values below to get a clear estimate.
Both parts are scaled to a common power of ten, rounded to integer units, and divided by their greatest common divisor. The reduced terms retain the original proportion.
a:b → (a × scale / gcd):(b × scale / gcd)Inputs: firstPart: 12 · secondPart: 18
Illustrative result: 2:3
Both terms divide evenly by 6, so the reduced ratio has two parts for every three parts.
Yes. A ratio such as 0:3 is valid; 0:0 has no defined relative size.
Up to six decimal places are supported to keep scaling within safe integer arithmetic.