What this calculator does
Add, subtract, multiply, or divide two mixed numbers with an exact reduced result.
How it works
The calculator evaluates convert each mixed number to an improper fraction, perform the operation, then reduce. Inputs are checked before calculation, and invalid values such as zero denominators or out-of-range selections produce a clear error instead of a misleading result.
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
7-
?operation=OperationChoice · Required · Default: add · Accepted values: add, subtract, multiply, divide
-
?wholeA=First whole numberNumber · Required · Default: 2
-
?numeratorA=First numeratorNumber · Required · Default: 1
-
?denominatorA=First denominatorNumber · Required · Default: 3
-
?wholeB=Second whole numberNumber · Required · Default: 1
-
?numeratorB=Second numeratorNumber · Required · Default: 3
-
?denominatorB=Second denominatorNumber · Required · Default: 4
Outputs
3-
mixedResultMixed-number resultText · Primary output
-
fractionResultImproper fractionText
-
decimalResultDecimal resultNumber
Inputs and results
The inputs are Operation, First whole number, First numerator, First denominator, Second whole number, Second numerator, Second denominator. Results include Mixed-number result, Improper fraction, Decimal result.