Skip to content
UniKit

Fraction simplifier

Reduce fractions to simplest form, normalize the sign, and reject zero denominators.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Numerator, denominator

Simplest fraction

Positive denominator

Enter a fraction to simplify

Numerator: 0 · Denominator: 0

What this tool does

  • Reduce 42/56 to 3/4 by dividing both terms by their greatest common divisor.
  • Accept 42,56, 42/56 or 42 56: the sign may sit on either term and always ends up on the numerator.
  • Check a hand-written reduction: the denominator stays positive, so you never see 3/-4.

Example

Input

42,56

Output

3/4

Separate the two integers with a comma, slash or space; 42/56 reduces by a gcd of 14 to 3/4. A zero denominator or a non-integer input raises an explicit error.

Frequently asked questions

What is the input format?

Two integers separated by a comma, slash or space, for example 42,56, 42/56 or 42 56. A single number such as 42 fails because the denominator is missing.

What about a zero denominator?

It raises invalid-denominator instead of returning Infinity: a fraction with denominator 0 is undefined.

Where does the negative sign go?

Either term may carry it, and the sign is always moved to the numerator: -42,56 and 42,-56 both give -3/4.

What if it is already reduced?

It is returned unchanged, e.g. 3,4 gives 3/4. Exact divisions keep denominator 1, so 4,2 gives 2/1; mixed numbers and decimals are never produced.

Keywords:fractionsimplify

Related tools