Fraction Calculator
Add, subtract, multiply or divide two fractions. Enter a numerator and denominator for each, pick an operation, and the answer is reduced to lowest terms.
2 replaced
How to use it
A fraction has a numerator (top) over a denominator (bottom). To add or subtract fractions you first give them a common denominator, combine the numerators, then simplify. To multiply, multiply the numerators together and the denominators together; to divide, flip the second fraction and multiply. This calculator does each step and reduces the answer to lowest terms using the greatest common divisor. Reducing means dividing the numerator and denominator by their largest common factor, so 6/8 becomes 3/4. When the denominator reduces to 1 the answer is a whole number.
Frequently asked questions
- Does it support regular expressions?
- Yes. Enable 'Regular expression' to use patterns like \d+ and backreferences such as $1 in the replacement. Invalid patterns show an error instead of changing your text.
- Does it replace all matches?
- Yes, every occurrence is replaced. 'Whole word only' (literal mode) prevents matching inside longer words, e.g. 'cat' won't match 'category'.
- Is my text sent to a server?
- No. Find and replace runs entirely in your browser; your text is never uploaded.
- Can I reuse matched text in the replacement?
- Yes, in regular-expression mode. Wrap part of your pattern in parentheses to capture it, then reference it in the replacement with $1 for the first group (or $& for the whole match). In literal mode the replacement is inserted as-is.