Homeโ€บ Mathโ€บ Scientific Calculator

Scientific Calculator

Evaluate scientific expressions: trig (sin, cos, tan), logarithms (log, ln), exponents (^), and constants (pi, e).

Inputs

ans = 0

Type ans anywhere to drop in your last answer. Press Enter (or Calculate) to lock the answer in and save the line to history.

Result
โ€”
Rounded
โ€”
Scientific notation
โ€”
Hex (if integer)
โ€”
Notes
โ€”

History

Your last 20 calculations, kept in this browser only. Click a line to load that expression back into the box.

About Scientific Calculator

Supported functions

sin, cos, tan, asin, acos, atan, log (base 10), ln (natural log), sqrt, abs, exp. Constants: pi, e. Operators: + - * / ^. Trig functions follow the RAD/DEG switch above the expression box, and ans stands in for your last answer.

Degrees or radians

The RAD/DEG toggle sets the unit for sin, cos and tan arguments and for what asin, acos and atan hand back. In DEG, sin(30) is 0.5 and asin(0.5) is 30; in RAD the same calls read โˆ’0.988 and 0.524. Your choice sticks between visits and travels inside share links, so a link that reads sin(30) = 0.5 still says that when someone else opens it. Degree results are trimmed to 12 significant digits, which is why cos(90) comes back as a clean 0 rather than 6.1e-17.

Reusing an answer with ans

Type ans anywhere in an expression and the previous answer drops in. It only advances when you actually calculate โ€” pressing Enter or the Calculate button โ€” so editing an expression that mentions ans previews against a fixed number instead of chasing its own tail. Entering ans*2 and pressing Enter repeatedly doubles, which is the point.

What History keeps

The last 20 calculations, each stored with the unit it was evaluated in. Click any line to drop that expression back into the box โ€” it loads the unit too, and loading never overwrites ans or adds another history line. Everything lives in this browser's local storage only: nothing is uploaded, and Clear history removes it for good.

Why log is base 10

Convention: "log" alone = base 10 (common log), "ln" = natural log (base e). Programmers reverse this โ€” Math.log in most languages is natural log. This calculator follows the math convention.

Order of operations

Standard PEMDAS: Parentheses, Exponents, Multiplication/Division (left to right), Addition/Subtraction. Use parens generously to avoid ambiguity.