🧮

Scientific Calculator

Perform scientific calculations

About this tool

This free online Scientific Calculator delivers the full function set of a physical scientific calculator directly in your browser — trigonometry (sine, cosine, tangent and their inverses, in degree or radian mode), logarithms (base-10 log and natural ln), powers and roots (x², xʸ, square root), factorials, reciprocals, absolute values, the constants π and e, and Ans recall for building on the previous result. It parses complete expressions with proper operator precedence — type 3sin(45) + 2π and it evaluates the whole thing at once, the way a real calculator does, not one operation at a time. A live result preview shows the answer as you type, DEG/RAD modes switch with one tap, and a history panel keeps the last calculations for reuse. Under the hood it's a real expression parser, not an eval shortcut — a recursive-descent engine that applies the actual mathematics precedence rules: parentheses first, then functions, then powers (right-associative, so 2^3^2 reads 2^9 = 512 as calculators treat it), then implicit multiplication (2π, 3(4+1), 2sin(30) all parse without an explicit ×), then factorials and postfix percent, then division and multiplication, then addition and subtraction. Two conventions matter and both are handled the way scientists expect: trig functions default to DEG mode because most everyday and educational use thinks in degrees — with a one-tap RAD switch for the calculus and physics contexts — and the percent operator is postfix (50% = 0.5), matching calculator convention rather than spreadsheet behavior. Inverse trig functions validate their domain: sin⁻¹(2) returns a clear explanation rather than NaN. The workflows this tool fits span coursework and work: physics problem sets — kinematics, optics, wave equations with their sine/cosine terms in either angle mode; chemistry — pH calculations with logs, gas-law manipulations, molarity work; engineering coursework and quick verifications where pulling out a phone app breaks concentration; trigonometry homework from geometry through precalculus, where inverse functions and degree/radian fluency are the actual skill being built; finance-adjacent exponent work — growth rates, decay, compound factors; and the everyday need this quietly replaces: the dedicated hardware calculator that's in the other room, the phone app buried behind four home screens, or the OS calculator that lacks functions entirely. For students without a permitted physical calculator in exams, it's also the practice tool — same functions, same precedence behavior, no cost. Everything runs locally in your browser. Every evaluation is performed by a client-side JavaScript expression engine on your device — your calculations never reach a server, are never logged and never stored. Disconnect from the internet after the page loads and the calculator keeps working fully. Close the tab and nothing remains anywhere.

Frequently asked questions

How do I use this scientific calculator?+

Type complete expressions into the input line just as you'd write them — 3sin(45) + 2π — and the live preview shows the result as you type; press Enter or the equals button to commit it to history. Use the keypad for functions if you prefer tapping to typing: the trig, log, power and constant buttons insert at your cursor position. Switch DEG/RAD modes with the toggle — degrees is the default and suits most coursework; radians matters for calculus and physics angular work. The INV key swaps sin/cos/tan to their inverses for equation solving.

How do I switch between degrees and radians?+

The DEG/RAD toggle sits above the input line, and it changes how the calculator interprets every angle argument: in DEG mode, sin(30) reads thirty degrees and returns 0.5; in RAD mode, sin(30) reads thirty radians and a completely different value. The mode label is always visible so there's never ambiguity about which interpretation is active — and this matters because mismatched angle modes are the classic silent error in trig calculations: results that look plausible and are entirely wrong. Default is DEG for everyday and educational use; switch to RAD for calculus, complex numbers and physics rotational work.

What does the Ans button do?+

Ans recalls the previous calculation's result into the current expression — the building-block pattern every scientific calculator uses. Compute 45×3.6, get 162, then type Ans×2 or press Ans as part of a longer expression and it evaluates with 162 substituted. This is how multi-step problems stay manageable: instead of re-typing intermediate values (and risking typos), each step builds on the last. The history panel serves the same workflow from the other direction — click any past result to bring its expression back into the input for editing and re-running.

How does the calculator handle order of operations?+

By the standard mathematical precedence rules, applied by a proper expression parser rather than left-to-right evaluation: parentheses nest first, then functions (sin, log, ln, √), then powers with right-associativity (2^3^2 = 2^9 = 512, the calculator convention), then implicit multiplication (2π, 3(4+1), 2sin(30) all parse correctly without an explicit ×), then factorial and postfix percent, then × and ÷ left to right, finally + and −. So 2+3×4² evaluates as 2+(3×16) = 50, matching every scientific calculator and math teacher's expectation — not the naive left-to-right reading that gives 144.

Is my calculation history saved or uploaded?+

No — the history exists only in the page's memory while the tab is open. Nothing is transmitted to any server, nothing is logged, nothing persists after you close or refresh the tab. The history panel keeps the last few calculations purely for your convenience during the session; close the tab and even that is gone. Since calculations run entirely in client-side JavaScript, you can also disconnect from the internet after the page loads and every function — trig, logs, powers, history, all of it — keeps working identically.

Why does sin(90) not give exactly 1 (or other odd floating-point results)?+

That's floating-point arithmetic, not an error: sin(90°) computes to 0.9999999999999999-ish in every digital calculator because binary floating point cannot represent π exactly — and trig values near their special angles land infinitesimally off. This tool displays results rounded to a sensible precision (typically 12 significant digits), which snaps sin(90°) to its clean 1 while preserving genuine precision elsewhere. The same rounding discipline keeps 0.1+0.2 reading as 0.3 rather than the binary-artifact 0.30000000000000004 that raw JavaScript would show.

Can I use this calculator on my phone, and does it need internet?+

Yes to both. The layout is responsive — the keypad and display resize for phone screens, and taps work like a physical calculator's keys. And no internet is needed after the page loads: the entire calculation engine runs in your browser as client-side JavaScript, so you can switch to airplane mode and keep calculating — genuinely useful when studying somewhere with poor connectivity, or on a flight. Nothing to install, nothing to update, no app store: bookmark the page and it behaves like an app that lives in your browser.

How is this different from the calculator app on my phone?+

Phone calculator apps handle arithmetic and often stop there; a scientific calculator adds the function layer that coursework and technical work actually needs — trig and inverse trig, log and ln, powers, roots, factorials, constants and expression parsing with correct precedence. The differences that matter in practice: full expressions evaluate at once (type a whole equation, not one operation per press), angle modes switch explicitly so DEG/RAD errors can't hide, and history is clickable for building multi-step calculations. For anything beyond +−×÷, this replaces both the phone app and the hardware scientific calculator.