Free · No sign-up · Runs in your browser

Fraction Calculator

Add, subtract, multiply and divide fractions with exact BigInt arithmetic. Return a simplified fraction and decimal approximation.

STEP 1

Set your values

Adjust the values, then calculate your result.

How to use Fraction Calculator

  1. Load the included example or provide your own input and settings.
  2. Choose the operation and review the supported format below.
  3. Run the tool, inspect the result, and copy or download it.

Calculate an exact rational result

Enter integer fractions such as 1/3 or signed integers and choose addition, subtraction, multiplication or division. Numerators and denominators are calculated with BigInt rather than floating-point arithmetic. The final numerator and denominator are reduced by their greatest common divisor, and a negative sign is normalized to the numerator. This keeps common arithmetic results exact even when their decimals repeat.

Distinguish exact output from approximation

The fraction fields are exact strings. The decimal field is an ordinary approximate number for convenience and may round a repeating or very large rational value. Each input integer is limited to fifty digits, denominators cannot be zero, and division by a zero fraction is rejected. Mixed-number syntax and decimal inputs are not supported; rewrite a mixed number as an improper fraction before using this calculator.

Does Fraction Calculator upload my input?

No. This tool processes input locally in your browser without calling a conversion API.

Is input uploaded?

Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.

Related tools and guides

Browse all developer tools