Basic Calculator

Add, subtract, multiply or divide two numbers.

Result

Result
16
Export:

How it works

Choose two numbers and one of the four core operations — addition, subtraction, multiplication, or division. The calculator applies the operation directly and returns the answer.

Both inputs accept decimals and negative numbers, so it handles everyday arithmetic as well as signed values without any extra steps.

Reading the result

The result is the single value produced by the chosen operation on your two inputs. Subtraction and division depend on order: the first number is acted on by the second.

  • Addition and multiplication give the same answer regardless of order.
  • Subtraction returns first minus second.
  • Division returns first divided by second, as a decimal when it does not divide evenly.

Tips and caveats

Division by zero is undefined, so the calculator rejects it rather than returning infinity or an error value. If you see that message, check the second number.

  • For chained calculations, run them one operation at a time and reuse each result.
  • Watch the sign of negative inputs, especially when subtracting.
  • Very long decimal results are rounded for display but computed at full precision.

Formula

result = a (operator) b