Fraction Calculator

Add, subtract, multiply, or divide two fractions. The primary result is an exact fraction, then a simplified form and a decimal view.

Last updated: October 4, 2026

Tool

This tool will load here.

What this calculator does

A fraction calculator adds, subtracts, multiplies, or divides two fractions and keeps the answer as a fraction. 1/2 + 1/3 is 5/6, not 0.8333 with a hopeful number of decimals. This page computes the unsimplified result, the reduced fraction, and a decimal equivalent for convenience. The decimal is a view. The fraction is the result.

Each side has a numerator and a denominator. Denominators cannot be 0. Division by a zero fraction is rejected. Inputs must be whole numbers, not 1.5 in the numerator. If you need decimals in a ratio, the Ratio Calculator scales them. The same gcd used to reduce 12/18 is available on its own in the GCD & LCM Calculator.

Work runs in the browser with integer arithmetic inside JavaScript’s safe integer range. Products that overflow that range are refused instead of silently rounded. That is stricter than a pocket calculator that would give you a float and call it a fraction.

How to use

  1. Enter the first numerator and denominator.
  2. Choose add, subtract, multiply, or divide.
  3. Enter the second numerator and denominator. Calculate. Example is 1/2 + 1/3.

The three result rows stay hidden until the inputs are valid. A previous 5/6 will not sit next to an error about a zero denominator.

Formula

Add: (n1/d1) + (n2/d2) = (n1×d2 + n2×d1) / (d1×d2). Subtract uses a minus in the numerator. Multiply: (n1×n2)/(d1×d2). Divide: (n1×d2)/(d1×n2), and n2 must not be 0. Simplify by dividing numerator and denominator by their gcd, then move a negative sign to the numerator.

Example

1/2 + 1/3 → unsimplified 5/6, simplified 5/6, decimal 0.833… (trimmed). 2/4 + 2/4 → unsimplified 16/16, simplified 1, decimal 1. 1/2 ÷ 0/3 is rejected because the second fraction is zero. 1/0 is rejected as an input.

1/2 + 1/3 = 5/6
2/4 + 2/4 = 16/16 = 1

Limits

  • Two fractions per run. No chains of five operands.
  • No mixed-number parser.
  • Safe-integer overflow is an error, not a rounded fraction.
  • The decimal row can be repeating; it is not the source of truth.

Complex fractions, such as (1/2)/(3/4), are just division of two fractions: 1/2 ÷ 3/4. Mixed numbers are not parsed: type 3/2 rather than 1 1/2. If you convert 1 1/2 to 3/2 by hand, the exact result stays a fraction. Converting to 1.5 first and then hoping the float comes back as 3/2 is how people lose the exact answer this page is meant to keep.

Improper fractions such as 9/4 are allowed and preferred over mixed numbers. The simplified row may stay improper (9/4 → 9/4) or become an integer (8/4 → 2). This page does not rewrite 9/4 as 2 1/4, because that mixed form is a presentation choice, not a different value. If a teacher wants mixed numbers, convert the simplified improper fraction by hand after you trust the exact result.

To talk about the same two numbers as a ratio, use the Ratio Calculator. To compute only gcd or lcm of the integers you already have, use the GCD & LCM Calculator. Those pages do not add 1/2 and 1/3.

On this page

Related guides

Related solutions

Need another tool ?

Open the free tools — no signup.

FAQs

newsletter signup

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Innovative Solutions For Modern Needs
Copyright © 2026 Yallasolve. all rights reserved.