Basic Calculator
A clean calculator for everyday sums. Type an expression such as 12.5 * (3 + 4) or tap the keys, and the answer appears as you type.
How it works
Your expression is read by a small built-in parser, not by eval, and follows the usual order of operations: brackets first, then powers, then multiplication and division, then addition and subtraction.
Worked example
Using the default values: Expression = 12.5 * (3 + 4).
The calculator returns: Result: 87.5.
Limits and assumptions
- Numbers use standard double-precision floating point, so very long decimals such as 0.1 + 0.2 can show a tiny rounding difference. The answer is rounded to 12 significant digits.
- Division by zero returns an error instead of a number.
- Everything is calculated in your browser. Nothing is sent to a server.
Frequently asked questions about the Basic Calculator
How do I calculate a percentage?
Use the multiplication form, for example 15% of 80 is 80 * 15 / 100. The % key gives the remainder (modulo), as in programming.
Why does 0.1 + 0.2 show 0.3 here?
The calculator rounds to 12 significant digits to hide the tiny binary rounding error that computers produce for such sums.
Can I use brackets?
Yes, nested brackets work. Implicit multiplication such as 2(3+4) is also supported.