Skip to content

Ratio Calculator

Simplify whole-number ratios and divide a chosen total between the two ratio parts.

Use the tool

Nonnegative integer parts up to 30 digits; both cannot be zero. The total must be 0–1 trillion.

Result

Enter values, then select the action button.

How it works

Divide both integer parts by their greatest common divisor to simplify a ratio. Split a total T using T×a/(a+b) and T×b/(a+b). Simplification uses exact integers; allocated shares are approximate decimal values and are not rounded to indivisible items.

Worked examples

How do I use this tool?

Review the method and limits, enter your values, and select calculate. Change the mode where offered. Copy or download the result, or reset to restore the example inputs. Changing inputs clears the previous result.

Are my entries uploaded?

The tool processes your entries in this browser. It does not upload them, store them automatically, or add them to page URLs. You choose whether to copy, download, or print results. Website-wide details are in our privacy policy.

Found a problem? Suggest an improvement.