OnlineTextLab
Esc

Scientific Calculator

Type whole expressions with trig, logs, powers and factorials.

0

History

Press = or Enter to keep a result here. Click one to use it again.

    Also accepts sinh, cosh, tanh, cbrt, log2, exp, abs, floor, ceil, round and mod. Type ans for the last result.

    Runs on your device. Your files and text are not uploaded.

    About Scientific Calculator

    A real calculator should follow the same order of operations you learned in school. Type 2 + 3 × 4 and this one gives 14, and it handles the cases that catch out cheaper calculators: -2^2 is -4, because the power happens before the minus, and 2^3^2 is 512, because powers stack from the right.

    You can see the whole expression as you build it, and fix a mistake in the middle without starting over. The answer updates with every keystroke. Each finished result goes into a history you can click to reuse. It works by keyboard on a laptop and by keypad on a phone.

    How it works

    Your expression goes through a small parser written for this tool, which reads numbers, operators and function names according to a precedence table. It is never run as code, so input like alert(1) is reported as an unknown function. Brackets you leave open at the end are closed automatically, so the live result keeps working while you type.

    Display is limited to 12 significant digits, which hides the tiny errors of binary arithmetic, so 0.1 + 0.2 shows 0.3. In degree mode, standard angles use exact values, so sin(30) is exactly 0.5 and tan(90) reports that it is undefined, where many calculators return a huge number.

    How to use Scientific Calculator

    1. Type an expression, tap the keypad, or press Try an example.
    2. Choose Degrees or Radians for trig functions.
    3. Watch the result update, then press = or Enter to keep it in the history.
    4. Carry on with an operator to use the result, click a history entry to reuse it, or press Copy result.

    Order of operations

    Input
    2 + 3 × 4^2 - sin(30)
    Output
    49.5

    The power runs first (16), then the multiplication (48), then the sine in degrees (0.5), and last the addition and subtraction from left to right. Press Try an example and the tool runs exactly this.

    When it helps

    • Physics or engineering homework with trig and powers in one line.
    • Checking a long formula by entering it exactly as written.
    • Combinations and probability work using factorials.
    • Quick logarithm work for decibels, pH or compound growth.
    • Working through several steps while keeping earlier results in view.

    Tips for a better result

    • Check the angle unit first. The most common wrong answer in trig comes from degrees set when the problem needs radians.
    • Implicit multiplication has the same priority as division, read left to right, so 1/2π means (1/2) × π, which is 1.57079632679. Use brackets if you mean 1/(2π).
    • Percent means divide by 100 here, so 200 + 10% is 200.1. A pocket calculator might read this as 220. Write 200 × 1.1 for that.
    • Type ans to use the last result, and mod for the remainder, as in 17 mod 5.

    Good to know

    • Numbers use standard double precision. Twelve digits are shown, and values above about 1.8e308 report an overflow.
    • It works in real numbers, so sqrt(-1) gives an explanation rather than a complex result.
    • It has no graphing, equation solving, matrices or memory registers beyond ans and the history.
    • History is cleared when you leave the page.

    Questions people ask

    What order does it calculate in?

    Brackets first, then factorials and percents, then powers, then unary minus, then multiplication and division, then addition and subtraction. Powers are grouped from the right, and the others from the left.

    Why is -2^2 equal to -4?

    Because the power has higher priority than the minus sign, as in standard mathematics. It reads as -(2^2). Write (-2)^2 if you want 4.

    What is the difference between log and ln?

    log is base 10, so log(1000) is 3. ln is the natural logarithm, base e. There is also log2 for base 2.

    Why does tan(90) show an error?

    Because the tangent of 90 degrees has no value, as the cosine there is zero. Calculators that return a large number are showing a rounding artifact.

    Can I use my keyboard?

    Yes. Click into the Expression box and type. Enter calculates, Escape clears, and symbols such as * and / work as well as × and ÷.

    What to use next

    Last reviewed . Read our editorial policy.