ToolHub

Scientific Calculator

Trig, logs, powers, factorial - with keyboard input and history

Tip: type directly with your keyboard. Enter = calculate, Esc = clear.

History

Your recent calculations will appear here.

Overview

A real scientific calculator in your browser

This is a full scientific calculator: trigonometry, logarithms, exponents, roots, factorial, and the constants pi and e. It parses your expression the way a graphing calculator does, respecting order of operations, so you can type a whole formula on one line and get the right answer. Type with your keyboard or tap the buttons, see the result update live, and reuse any past result from the history panel.

How it parses

Order of operations (PEMDAS / BODMAS)

The calculator uses a proper expression parser (the shunting-yard algorithm), not a left-to-right button sequence. That means it follows the standard order of operations:

  • Parentheses / Brackets first
  • Exponents / Orders (powers and roots)
  • Multiplication and Division (left to right)
  • Addition and Subtraction (left to right)

So 2 + 3 × 4 correctly gives 14, not 20. And (2 + 3) × 4 gives 20. Use parentheses whenever you want to override the default order.

What each button does

The functions explained

Trigonometry: sin, cos, tan

Set DEG or RAD before using these. sin(30) is 0.5 in degrees but −0.988 in radians - the same input, very different answers. The inverse functions (asin, acos, atan) are available by typing them directly.

Logarithms: log and ln

log is base 10 (log(1000) = 3). ln is the natural log, base e (ln(e) = 1). To compute a log in another base, use the change-of-base formula: log base b of x = ln(x) / ln(b).

Powers and roots

squares the value, (the ^ symbol) raises to any power, and takes the square root. For a cube root use x^(1/3); for any nth root use x^(1/n).

Factorial

n! multiplies all whole numbers from 1 to n. 5! = 120. Used heavily in probability and combinatorics. Values above 170! overflow to infinity (a limitation of standard floating-point numbers).

Constants: pi and e

pi ≈ 3.14159 (ratio of a circle's circumference to its diameter). e ≈ 2.71828 (the base of natural logarithms). Type them as part of any expression.

The most common mistake

Degrees vs radians

Always check your angle mode

The single biggest source of wrong trig answers is the wrong angle mode. Degrees split a circle into 360 parts; radians use 2π (≈ 6.28) for a full circle. School geometry usually uses degrees. Calculus and physics usually use radians. The active mode is shown at the top of the display - switch it before calculating.

Work faster

Keyboard shortcuts

  • Numbers and + − * / ^ ( ) . - type directly
  • Enter or = - calculate
  • Backspace - delete the last character
  • Escape - clear everything
  • Click a history entry - reuse that result
  • Ans button - insert the most recent answer

Behind the scenes

Privacy and how it runs

No eval, no server

The calculator uses a custom safe expression evaluator - never JavaScript's eval(), which would be a security risk. Everything runs locally in your browser. Nothing you calculate is sent anywhere.

Common questions

How do I calculate a percentage?

The % button inserts × 0.01, so 50 × 20% evaluates as 50 × 0.20 = 10 (20% of 50). For percentage increase, compute 50 × 1.2 to add 20%.

How do I compute a cube root?

Use a fractional exponent: 27^(1/3) = 3. For any nth root, raise to the power 1/n.

Why does sin(90) give 1 but sin(pi/2) needs radians?

In degrees mode, 90 degrees is a quarter turn, and sin is 1. In radians mode, the equivalent is π/2 ≈ 1.5708. Both describe the same angle; the number you type depends on the mode.

What does E mean in a result?

Scientific notation for very large or very small numbers. 1.5E12 means 1.5 × 10¹² (1,500,000,000,000). The calculator switches to this format automatically when numbers get too long to display normally.

Can it handle long expressions?

Yes. Type an entire formula with nested parentheses and multiple functions on one line, like sqrt(sin(45)^2 + cos(45)^2), and it evaluates the whole thing at once with correct precedence.

What is 1.5e12 in numbers?

1.5e12 in numbers is 1,500,000,000,000, which is 1.5 trillion. The exponent 12 tells you to move the decimal point of 1.5 twelve places to the right, filling the gap with zeros.

What does 1.5e12 mean?

It means 1.5 × 10¹², or 1.5 times ten to the power 12. The e is shorthand for "times ten to the power of", so 1.5e12 equals 1,500,000,000,000 (1.5 trillion).

How do I read scientific notation?

Read the number before the "e" as the coefficient and the number after it as the power of 10. So 6.022e23 reads as "6.022 times ten to the power of 23". A positive exponent means a large number, and a negative exponent means a small fraction below 1.

What is e notation on a calculator?

E notation (also called scientific notation or exponential notation) is how a calculator shows numbers that are too big or too small to fit on screen. The e replaces "times ten to the power of", so 1e-3 means 1 × 10 to the power of -3, which equals 0.001. It is the same format as the capital E you see in a result.

E notation explained

What does 1.5e12 mean?

1.5e12 means 1.5 × 10¹², which is 1.5 multiplied by ten to the power 12. That works out to 1,500,000,000,000, or 1.5 trillion. The letter "e" here stands for "times ten to the power of", so 1.5e12 is simply a compact way of writing 1.5 × 10¹² without superscripts. You will see this format on almost every calculator, spreadsheet, and programming language.

The exponent tells you how far to move the decimal point. A positive exponent like 12 shifts the decimal point 12 places to the right, adding zeros and making the number larger. A negative exponent shifts the decimal point to the left instead, so 2.5e-6 means 2.5 × 10 to the power of -6, which equals 0.0000025, a very small number.

Quick lookup

Scientific notation to plain number

Type any of these into the calculator, or use the table as a quick reference for turning E notation into a full decimal number.

Scientific notationPlain numberIn words
1e31,000One thousand
1.5e61,500,0001.5 million
1.5e121,500,000,000,0001.5 trillion
6.022e23602,200,000,000,000,000,000,000About 602 sextillion (Avogadro's number)
1e-30.001One thousandth
2.5e-60.00000252.5 millionths

A positive exponent (such as e12) moves the decimal point right and makes the number bigger. A negative exponent (such as e-6) moves it left and makes the number smaller.

Worked examples

How to convert scientific notation to a number and back

From scientific notation to a plain number

Start with the coefficient and move the decimal point by the number of places shown in the exponent. Move right for a positive exponent, left for a negative one, and pad with zeros as needed.

  • 1.5e12 becomes 1,500,000,000,000 (move the decimal 12 places right)
  • 6.022e23 becomes 602,200,000,000,000,000,000,000 (move it 23 places right)
  • 2.5e-6 becomes 0.0000025 (move the decimal 6 places left)

From a plain number back to scientific notation

Move the decimal point until only one non-zero digit stays to its left, then count how many places you moved it. That count is the exponent: positive if you moved the point left, negative if you moved it right.

  • 1,500,000,000,000 becomes 1.5e12 (move the decimal 12 places left)
  • 0.001 becomes 1e-3 (move the decimal 3 places right)

Quick check

Count the zeros. 1e3 has an exponent of 3 and the plain number 1,000 has 3 zeros. 1.5e12 has 12 zeros after the 15, giving 1,500,000,000,000.

Related calculators

Other calculation tools that pair with the scientific calculator.

Last reviewed: · Methodology based on US building code standards, contractor pricing surveys, and manufacturer specifications.

Quick steps

1

Type or tap

Use the on-screen buttons or type directly with your keyboard. Enter calculates, Backspace deletes, Escape clears.

2

Pick degrees or radians

Toggle DEG/RAD before using trig functions. Most everyday angle work uses degrees; calculus and physics often use radians.

3

Reuse results

Click any history entry or the Ans button to drop the last result back into a new calculation.

Frequently asked questions

Does this calculator follow order of operations?

Yes. It uses a proper expression parser (shunting-yard algorithm) that respects PEMDAS/BODMAS: parentheses, exponents, then multiplication/division, then addition/subtraction. So 2 + 3 × 4 correctly equals 14, not 20.

How do I calculate sin, cos, or tan?

Tap the function button (it inserts 'sin(' etc.), enter the angle, and close the parenthesis. Set DEG or RAD first - sin(30) is 0.5 in degrees but -0.988 in radians.

What's the difference between log and ln?

'log' is the base-10 logarithm (log 1000 = 3). 'ln' is the natural logarithm, base e (ln of e = 1). Both are available as separate buttons.

How do I do powers and square roots?

Use x² for squaring, xʸ (the ^ symbol) for any power, and √ for square root. For a cube root, use x^(1/3).

Can I use my keyboard?

Yes. Type numbers and operators directly. Enter or = calculates, Backspace deletes the last character, Escape clears everything. It's faster than clicking for long expressions.

Is my calculation sent to a server?

No. Everything is computed locally in your browser with a safe expression evaluator (no eval()). Nothing you type is transmitted or stored.

Related tools

More free calculators tools and other utilities you might find useful.