Basic Calculator

A simple online calculator for adding, subtracting, multiplying and dividing, with percent, square root, memory keys, keyboard input and a history of results.

Basic calculator
 
0
 

History

    You can also use your keyboard: digits, + − * /, Enter or = for equals, Backspace, Escape to clear, and % for percent. Whole-number results up to 20 digits are exact; other results are rounded to 15 significant digits to avoid tiny decimal errors such as 0.1 + 0.2 = 0.30000000000000004.

    On this page

    This basic calculator is a free online calculator for everyday arithmetic: addition, subtraction, multiplication and division, plus percentages, square roots, squares, reciprocals and memory keys. It works with your mouse, finger or keyboard, keeps a history of your recent calculations, and avoids the tiny decimal errors that make some calculators show 0.1 + 0.2 as 0.30000000000000004.

    For example, 0.1 + 0.2 = 0.3, 10% of 200 added to 200 gives 220, √144 = 12, and 99,999,999 × 99,999,999 = 9,999,999,800,000,001, exactly.

    How to use the basic calculator

    1. Tap or click the number keys to enter a number. Use . for a decimal point and ± to make it negative.
    2. Press an operation key (+, −, ×, ÷), enter the second number and press =.
    3. Use C to clear everything, CE to clear just the current entry and ⌫ to delete the last digit.
    4. Your recent results appear in the history list below the keys.

    On a computer, click the calculator once and then type with your keyboard: digits, + − * /, Enter or = for equals, Backspace to delete, Escape to clear and % for percent.

    What each key does

    KeyFunction
    + − × ÷Add, subtract, multiply and divide
    =Show the result. Pressing it again repeats the last operation.
    %Percent. On its own, 50 % gives 0.5. After + or −, it works out a percentage of the first number.
    √xSquare root of the displayed number
    x²Square the displayed number
    1/xReciprocal: 1 divided by the displayed number
    ±Change the sign between positive and negative
    C / CE / ⌫Clear all, clear entry and backspace
    MC / MR / M+ / M−Memory clear, recall, add and subtract

    How the calculator works out chains of operations

    Like most handheld basic calculators, this one uses immediate execution: each operation is carried out as soon as you press the next operation key. So typing 2 + 3 × 4 = works out 2 + 3 = 5 first, then 5 × 4 = 20. A scientific calculator, by contrast, follows the order of operations and would give 2 + 12 = 14. If you need the order of operations, enter the multiplication first (3 × 4 = 12, then + 2 = 14), or use a scientific calculator.

    Using the percent key

    The percent key is handy for shopping and bills:

    • Adding a percentage: 200 + 10 % = 220. The 10 % becomes 10% of 200, which is 20.
    • Taking off a discount: 80 − 25 % = 60, a 25% discount on 80.
    • Finding a percentage of a number: 15 % × 60 gives 0.15 × 60 = 9, or enter 60 × 15 % =.
    • Converting to a decimal: 50 % on its own gives 0.5.

    Using the memory keys

    Memory lets you keep a running total while you do other calculations. Press M+ to add the displayed number to memory and M− to subtract it. MR brings the stored total back to the display, and MC clears it. When memory holds a value, it’s shown under the display. For example, to total a shopping list of 4 items at 2.50 and 3 items at 1.20, calculate 4 × 2.5 = and press M+, then 3 × 1.2 = and press M+, then MR shows 13.6.

    Repeating a calculation

    Pressing = again repeats the last operation with the same second number. Type 5 + 2 = to get 7, then press = twice more to get 9 and 11. This is a quick way to count up in steps or apply the same multiplication repeatedly, such as growing a number by 10% each time with × 1.1 = = =.

    Why 0.1 + 0.2 isn’t always 0.3 on computers

    Computers store most decimals in binary, which can’t represent numbers like 0.1 exactly, so tiny errors creep in. That’s why some software shows 0.1 + 0.2 = 0.30000000000000004. This calculator rounds results to 15 significant digits, which removes these artefacts while keeping far more precision than you’ll ever need for everyday sums. Whole-number additions, subtractions and multiplications are calculated exactly up to 20 digits.

    Worked example: splitting a bill with a tip

    Four friends have a meal costing 86.40 and want to add a 15% tip and split the total. Type 86.4 + 15 % = to get 99.36, the bill including the tip. Then press ÷ 4 = to get 24.84 each. Because the calculator keeps the full value between steps, there’s no rounding error from writing down intermediate answers. If someone wants to pay a round 25, you can work out the difference with 25 − 24.84 = 0.16.

    Worked example: comparing prices

    A 750 g box of cereal costs 4.20 and a 500 g box costs 3.10. Which is better value? Divide the price by the weight for each: 4.2 ÷ 750 = 0.0056 per gram and 3.1 ÷ 500 = 0.0062 per gram. Multiplying by 100 gives 0.56 and 0.62 per 100 g, so the larger box is cheaper per gram. Unit prices like these are a quick, reliable way to compare offers in a shop.

    Basic calculator or scientific calculator?

    A basic calculator is ideal for money, shopping, measurements and quick checks, where you mostly add, subtract, multiply, divide and work with percentages. Its immediate-execution style matches the pocket calculators most people are used to, and the large keys are easy to use on a phone. A scientific calculator is better for schoolwork and technical problems that need brackets, the order of operations, powers, logarithms or trigonometry. If you find yourself writing down intermediate results to combine them later, a scientific calculator with brackets will probably save time.

    Tips for accurate calculations

    Estimate the answer before you calculate, so you can spot a slip such as a missing digit or a decimal point in the wrong place: 48 × 21 should be close to 50 × 20 = 1,000. Use the backspace key to fix a single wrong digit rather than starting again. For long lists of numbers, use M+ after each subtotal so you don’t lose your place. And check the history list to confirm each step was entered the way you intended.

    Error messages

    • Cannot divide by zero appears if you divide by 0 or take 1/x of 0. Division by zero has no answer.
    • Invalid input appears if you take the square root of a negative number, which has no real answer.

    Press any number key or C to carry on after an error.

    A short history of the calculator

    People have used tools to help with arithmetic for thousands of years, from counting boards and the abacus to the mechanical adding machines of the 1600s built by inventors such as Blaise Pascal. Desk calculators with gears and cranks filled offices for much of the twentieth century. The first pocket electronic calculators appeared in the early 1970s, and within a decade they were cheap enough for every student. Today the same functions run in a web browser, available on any phone or computer, with the bonus of a history log and exact arithmetic for large whole numbers.

    Accessibility

    Every key has a descriptive label for screen readers, the display announces new results, and the whole calculator can be used from the keyboard. The keys are at least 48 pixels tall so they’re easy to tap, and the layout adapts to narrow phone screens without needing to scroll sideways.

    Everyday uses

    • Splitting a restaurant bill and adding a tip.
    • Working out discounts, sales tax and price differences when shopping.
    • Checking invoices, receipts and budgets.
    • Converting quantities in recipes.
    • Quick homework checks.

    Related calculations

    For related questions, use the percent calculator to work out percentages and percentage change, or the fraction calculator to add, subtract, multiply and divide fractions.

    Frequently asked questions

    Yes. Click the calculator once, then type digits and + − * /. Enter or = gives the result, Backspace deletes, Escape clears and % works out percentages.

    Like a standard pocket calculator, it works out each step as you go: 2 + 3 = 5, then 5 × 4 = 20. For the order of operations, multiply first or use a scientific calculator.

    Type the number, press +, type the percentage and press %, then =. For example, 200 + 10 % = gives 220.

    Type the price, press −, type the discount and press %, then =. 80 − 25 % = gives 60.

    C clears everything, including the operation you started. CE clears only the number you're currently typing.

    M+ adds the displayed number to memory, M− subtracts it, MR recalls the total and MC clears it.

    It repeats the last operation. After 5 + 2 = 7, pressing = again gives 9, then 11.

    Whole-number results up to 20 digits are exact. Other results are accurate to 15 significant digits.

    Yes. The last 20 calculations appear in the history list, newest first. Use Clear history to empty it.

    Yes. The keys are sized for touch screens and the layout adjusts to small screens.

    Many apps show tiny binary rounding errors. This calculator rounds results to 15 significant digits, so you see the expected 0.3.

    Yes. It's completely free, needs no sign-up and runs entirely in your browser.

    It gives the reciprocal: 1 divided by the displayed number. 1/x of 4 is 0.25.