Scientific Calculator

A free online scientific calculator with trigonometry, logarithms, powers, roots, factorials, memory keys, and full keyboard support. Works on phone, tablet, and desktop.

History

Calculations you confirm with equals show up here. Tap one to reuse its result.

Keyboard

Enter
Calculate
Backspace
Delete one character
Esc
Clear all
^
Power

A full function set without the handheld

Most people need a scientific calculator a few times a month, which is rarely enough to justify carrying one. This one opens in a browser tab and covers the same ground: trigonometry with a proper degree and radian switch, logs in three bases, powers, roots, factorials, and memory keys that survive between calculations. The expression stays on screen while you build it, so you can check a long formula before committing to an answer.

Small details that save time

Live answer preview

The result appears under your expression while you type. A mismatched bracket or a stray digit shows up immediately instead of after you press equals.

Type or tap

Full keyboard support on desktop and large tap targets on mobile, so the same tool works whether you are at a desk or on a phone.

Reusable history

The last dozen calculations stay listed. Tap one to pull its result back into the input instead of copying digits by hand.

Solved on your device

Expressions are parsed and solved in your browser. Nothing you calculate is sent anywhere or stored once the tab closes.

How this Scientific Calculator works

Every expression you type is parsed before it is solved. The calculator reads the line character by character into numbers, operators, functions, and constants, then reorders them with the shunting-yard algorithm so precedence is settled before any arithmetic happens. Parentheses bind first, then functions, then powers, then multiplication and division, and finally addition and subtraction. Powers stay right-associative, so 2^3^2 gives 512 rather than 64, matching how a handheld calculator behaves.

That parsing step is also a safety decision. The input is never handed to the JavaScript engine to run, so nothing typed into the display can execute as code. Anything the parser does not recognise is rejected instead of guessed at.

Trigonometry respects the angle switch. In degrees, arguments to sine, cosine, and tangent are converted to radians before the calculation, and results from the inverse functions are converted back, so sin(30) returns exactly 0.5. In radian mode the values pass through untouched. Factorials are computed as whole-number products and refuse negative or fractional input rather than returning something meaningless.

Results are formatted for reading, not for maximum digits. Whole numbers stay whole, ordinary decimals are trimmed to twelve significant figures to hide floating-point noise, and anything above a trillion or below a billionth switches to exponential form. Each answer you confirm is kept in the history list, where a tap drops it back into the input. Nothing is sent to a server.

How to use this Scientific Calculator

1

Choose degrees or radians

Set the angle mode before any trigonometry. School and engineering work usually uses degrees; calculus uses radians.

2

Build the expression

Tap the keys or type on your keyboard. Parentheses, powers, roots, and logs can all be combined in one line.

3

Watch the live preview

The answer updates under your expression as you type, so a typo shows up before you press equals.

4

Reuse past answers

Press equals to save the calculation to history, then tap any entry to drop it back into the input.

Example Usage

Three calculations typed straight into the input line:

Input
Mode: DEG sin(45)^2 + cos(45)^2 5! / (2^3) ln(e^4)
Output
1 15 4

Frequently Asked Questions

What can this scientific calculator do?
It handles the full set you would expect from a handheld model: the four basic operations, powers and roots, factorials, natural and base-10 logs, all six trigonometric functions with their inverses, hyperbolic functions, pi, e, and nested parentheses.
Why does sin(30) give me a different answer than I expected?
Check the angle mode. In degrees, sin(30) is 0.5. In radians, the same expression is about -0.988. The DEG and RAD buttons sit above the keypad and the active one is highlighted.
Does it follow the order of operations?
Yes. Parentheses come first, then functions, then powers, then multiplication and division, then addition and subtraction. Powers are right-associative, so 2^3^2 is 512 rather than 64, which matches how scientific calculators behave.
Can I type on my keyboard instead of tapping?
Yes. Numbers, operators, parentheses, and the caret for powers all work. The % key is the remainder (modulo) operator, so 17 % 5 gives 2 — for discounts and percentage change, use the percentage calculator instead. Enter calculates, Backspace deletes one character, and Escape clears everything.
What does the INV key change?
It flips the function row to the inverse set. Sin becomes arcsine, ln becomes e to the power of x, the square becomes a cube, and the hyperbolic and base-2 log functions appear.
How do the memory buttons work?
MS stores the current answer, MR pastes it back into your expression, M+ and M− add to or subtract from the stored value, and MC clears it. The stored number stays visible above the keypad.
Can I use a previous result in a new calculation?
Yes. Every calculation you confirm with equals is saved in the history list. Tap an entry and its result drops straight into the input line, which saves retyping long numbers.
Why does the result show up in scientific notation?
Very large and very small numbers are switched to exponential form so the display stays readable. Anything at or above a trillion, or below one billionth, is shown that way.
Does it need an internet connection or an install?
It loads in the browser and runs from there. No download, no account, and no permissions. Once the page is open the keypad keeps working the same way on a phone, tablet, or desktop.
Is this accurate enough for exams and coursework?
It uses standard double-precision arithmetic, the same as most handheld calculators, so results match to well past the digits you would write down. Check with your instructor before relying on a phone or laptop during a test.

Related Tools

The Scientific Calculator is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.

Comments

Questions, corrections, and useful tips are welcome. Comments are reviewed before publication.

Loading comments...

Comments are stored and moderated using Cusdis Cloud. Email is optional. Privacy Policy

As featured on

CodeItBro - Free dev tools + practical guides to help you ship faster | Product HuntCodeItBro - Free Online Developer Tools badgeCodeItBro badge