Numbers & calculations

Calculator

A clear head for everyday numbers. Simple calculations, without the clutter.

0
This session

    How it works

    Calculator

    Use the keypad or type an expression. Multiplication and division come before addition and subtraction; parentheses change that order.

    How to use this tool

    1. Type an expression or use the keys. Use parentheses to state the grouping you want; press Enter or = to calculate.
    2. Copy the result or inspect the last ten calculations in the history. Clear starts a new expression; reloading clears the session history.

    Understanding the result

    Multiplication and division happen before addition and subtraction. Decimal arithmetic uses 30 significant digits internally; results are displayed with up to 30 significant digits, with a decimal comma on translated pages.

    Worked examples

    2 + 3 × 4 → 14

    (2 + 3) × 4 → 20

    0.1 + 0.2 → 0.3

    Good to know

    Decimal arithmetic, up to 30 significant digits. Division by zero is undefined. History lasts only for this page visit.

    Supported syntax is addition, subtraction, multiplication, division, signs and parentheses. Expressions are limited to 256 characters, 128 tokens and 32 nested parsing levels. Division by zero produces an error.

    A few quick answers

    Why is 1 ÷ 3 not an exact decimal?

    Its decimal expansion never ends. The displayed value is rounded to the available precision; use exact fractions elsewhere when that distinction matters.

    Sources and implementation

    Implementation for this tool: decimal.js · 30

    Maintained by Chpl Limited · Updated:

    A little break from ads.

    Choose to view a rewarded ad and get 24 ad-free hours in this browser. No payment or account required.

    There are no rewarded ads available right now. All tools are still free to use.

    Optional advertising is off. If enabled later, it will only load after your choice. Tool inputs are never sent to analytics.