.calc-ltr { direction: ltr; } .calc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; } .mode-toggle { display: inline-flex; border: 1.5px solid #ccc; border-radius: 8px; overflow: hidden; } .modebtn { margin: 0; padding: 7px 14px; font-size: .85rem; font-weight: 700; background: #fff; color: #555; border: none; border-radius: 0; } .modebtn.active { background: #007bff; color: #fff; } .kbd-hint { font-size: .72rem; color: #888; } .screen { direction: ltr; text-align: right; font-family: Consolas, Menlo, monospace; font-size: 1.25rem; min-height: 2.3em; padding: 10px 14px; background: #0f172a; color: #e2e8f0; border-radius: 10px; margin-top: 12px; word-break: break-all; } .screen.err { color: #fca5a5; } .keypad { display: grid; grid-template-columns: 3fr 4fr; gap: 8px; margin-top: 14px; direction: ltr; } .pad { display: grid; gap: 6px; } .pad.left { grid-template-columns: repeat(3, 1fr); } .pad.right { grid-template-columns: repeat(4, 1fr); } .key { margin: 0; padding: 11px 0; font-size: .95rem; font-weight: 600; border-radius: 8px; background: #eef2f7; color: #0f172a; border: 1px solid #d7dee8; } .key.fn { background: #f1f5fb; color: #0369a1; } .key.op { background: #dce7f5; } .key.eq { background: #007bff; color: #fff; border-color: #007bff; } .key.danger { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; } .key:hover { filter: brightness(.97); } .key:active { transform: translateY(1px); } @media (max-width: 420px) { .keypad { grid-template-columns: 1fr; } }

Scientific Calculator

sin(30) + 2²sinln√×AC= 4.5.
0-9 ( ) + − × ÷ ^ % ! π e · Enter = · Esc AC
0

What this calculator does

The Scientific Calculator evaluates full expressions — not just one operation at a time. Type or tap something like sin(30) + 2^3 × 5 and it applies proper order of operations: parentheses first, then powers, then multiplication and division, then addition and subtraction.

It covers trigonometry with a DEG/RAD switch, inverse trig functions, natural and base-10 logarithms, square roots, powers, factorials, modulo, and the constants π and e. Everything runs locally in your browser, and the whole keypad is mirrored on your physical keyboard.

How to use the Scientific Calculator

  1. Pick an angle mode — DEG for degrees (most school and everyday work) or RAD for radians (calculus and physics). The active mode is highlighted.
  2. Build the expression with the keys, or just type on your keyboard: digits, operators, parentheses, Enter for "=", Backspace to delete, Esc to clear.
  3. Press "=" to evaluate. The result appears on the screen and becomes the starting value of the next expression, so you can keep chaining.
  4. Use AC to reset everything, or ⌫ to remove the last entry — function names like sin( are removed as one unit.

Supported functions and syntax

sin( cos( tan( trigonometry (DEG or RAD) asin( acos( atan( inverse trigonometry, same mode ln( log( natural log / base-10 log √( x² xʸ square root, square, any power (^) n! % factorial (integers 0–170), modulo π e constants 3.14159… and 2.71828…

Example: 2^10 = 1024. √(144) = 12. 5! = 120. sin(30) in degrees = 0.5. log(1000) = 3. Results are rounded to 10 decimal places to hide floating-point noise like 0.30000000000000004.

Sites for learning scientific math

These teaching resources explain the mathematics behind the keys (external websites that open in a new tab):

Frequently asked questions

Why does sin(30) give a different answer in RAD mode?

Because 30 radians and 30 degrees are different angles. One full turn is 2π radians or 360 degrees; always check the mode before evaluating trigonometry.

What is the difference between ln and log?

ln is the natural logarithm, base e ≈ 2.71828. log here is the common logarithm, base 10, so log(100) = 2.

What does the % key do?

In this calculator % is the modulo operator: it returns the remainder of a division, so 10 % 3 = 1. For percentages, use the dedicated Percentage Calculator.

Why is the result of 0.1 + 0.2 shown as 0.3?

The raw floating-point sum is 0.30000000000000004. The display rounds to ten decimal places, which removes that noise without hiding meaningful precision.

Does typing on the keyboard work?

Yes. Digits, . ( ) + − × ÷ ^ % map directly to keys, Enter evaluates, Backspace deletes and Escape clears.

Is anything sent to a server?

No. Evaluation happens entirely in your browser's own JavaScript engine.

Related calculators

Other free calculators commonly used with this tool: Arithmetic Calculator, Percentage Calculator, and Unit Converter.