Basic Calculator
Add, subtract, multiply, divide
Choose two numbers and an operation to get the answer with the working shown. Decimals and negative numbers are supported, and division by zero is reported instead of returning Infinity.
Basic Calculator — enter your values
Answer
16
- Rounded to 2 decimals
- 16
Calculation
- 12 + 4 = 16
Formula
answer = a (operation) b
Worked examples
Addition
12 + 4
= 16
Division
12 ÷ 4
= 3
Power
2 ^ 10
= 1,024
Order of operations
This tool applies one operation to two numbers, so there is no ambiguity about precedence. For longer expressions, work left to right applying powers, then multiplication and division, then addition and subtraction.
Frequently asked questions
- What happens if I divide by zero?
- Division by zero is mathematically undefined, so the calculator shows a message instead of an infinite result.
- Can I use negative numbers?
- Yes. Type a minus sign before the value; powers of negative numbers are supported when the exponent is a whole number.