How it works
Perform addition, subtraction, multiplication, and division with fractions.
Input query strings and outputs
Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.
Input query strings
5-
?n1=N1Number · Optional · Default: 1
-
?d1=D1Number · Optional · Default: 2
-
?n2=N2Number · Optional · Default: 1
-
?d2=D2Number · Optional · Default: 3
-
?operation=OperationText · Optional · Default: +
Outputs
1-
resultResultText · Primary output
result contains the calculator’s complete rendered result area, including its visible result cards, tables, charts, and messages.
Simplify, add, subtract, multiply, and divide fractions
Description
The Fraction Calculator is an essential tool for working with rational numbers. It allows you to perform basic arithmetic operations (+, -, ×, ÷) between two fractions and provides the result in its simplest form. Whether you are checking homework or scaling a recipe, this tool eliminates the need for finding common denominators manually.
Inputs
- Fraction 1: Numerator and Denominator inputs.
- Operation: Addition (+), Subtraction (-), Multiplication (×), or Division (÷).
- Fraction 2: Numerator and Denominator inputs.
Outputs
- Simplified Fraction: The final reduced result (e.g., 2/4 becomes 1/2).
- Decimal: The result converted to a floating-point number.
- Unsimplified Fraction: The raw result of the calculation before reduction.
Chart
- N/A: This tool provides a direct numeric mathematical result.
“Good to Know”
- Greatest Common Divisor (GCD): This tool uses the Euclidean algorithm to find the GCD and automatically reduce your fractions to the lowest possible terms.
- Division by Zero: The calculator will prevent calculations if a denominator is set to zero, as this is mathematically undefined.
- Improper Fractions: The tool handles improper fractions (where the numerator is larger than the denominator) natively.
Examples
Example 1: Basic Addition
- Input: 1/2 + 1/3
- Output:
- Simplified: 5/6
- Decimal: 0.8333
Example 2: Multiplication and Reduction
- Input: 2/3 * 3/4
- Output:
- Simplified: 1/2
- Unsimplified: 6/12
Example 3: Division
- Input: 1/2 ÷ 1/4
- Output:
- Simplified: 2/1
- Decimal: 2.0000