Math & Science

Free Online Scientific Calculator

A free online calculator with scientific functions — trig, log, powers, roots, factorial, constants, memory, and a full history log.

Loading Utility…

Scientific Calculator Guide · 9 min read

Free Online Scientific Calculator — Trig, Log, Factorial & Memory

Whether you're solving a physics problem, checking a logarithm by hand, or chaining multi-step calculations at your desk, a scientific calculator should be fast, accurate, and out of your way. Our free online scientific calculator evaluates full mathematical expressions — trig functions in degrees or radians, natural and base-10 logarithms, factorials, square roots, and arbitrary powers — directly in your browser with a live preview as you type. Four memory registers let you carry intermediate results across steps, and a 50-entry history log lets you restore any past calculation with one click. Nothing is uploaded; all computation runs on your CPU.

Expression Syntax Reference

This calculator accepts natural mathematical notation — the same style used in most programming languages — rather than requiring you to commit inputs one keystroke at a time like a pocket calculator. You can type an entire expression, review the live preview, and correct mistakes before hitting equals.

Syntax Operation Example Result
+, -, *, / Arithmetic 12 * 3 + 4 40
^ Power 2^10 1024
sqrt(x) Square root sqrt(144) 12
x^2 Square 9^2 81
! Factorial 6! 720
sin(x), cos(x), tan(x) Trig (DEG or RAD) sin(30) 0.5
asin(x), acos(x), atan(x) Inverse trig asin(0.5) 30
log10(x) Base-10 logarithm log10(1000) 3
log(x) Natural logarithm (ln) log(e) 1
pi π constant 2 * pi 6.28318...
e Euler's number e^2 7.38905...

Parentheses group sub-expressions exactly as in arithmetic: (3 + 4) * 5 evaluates to 35, not 23. Nested parentheses work too: sqrt((3^2) + (4^2)) gives 5.


DEG vs. RAD Mode

The angle mode toggle — visible at the top right of the calculator — controls how trig functions interpret their argument. In DEG mode, sin(90) means sin of 90 degrees and returns 1. In RAD mode, sin(90) means sin of 90 radians, which is approximately 0.894. This is the most common source of unexpected results in trigonometry.

When to use DEG: geometry, navigation, engineering drawings, physics problems involving angles measured from a reference direction, and any textbook problem that states angles in degrees.

When to use RAD: calculus (derivatives and integrals of trig functions are cleanest in radians), signal processing, rotation matrices in computer graphics, and physics formulas involving angular frequency (ω = 2πf).

Converting between the two: multiply degrees by π/180 to get radians, or multiply radians by 180/π to get degrees. A full circle is 360° = 2π radians.


Trigonometric Functions and Their Inverses

The calculator provides all six primary trig operations split across two rows:

  • sin, cos, tan — the standard forward functions: given an angle, return a ratio
  • sin⁻¹, cos⁻¹, tan⁻¹ — the inverse functions: given a ratio, return the angle

Inverse trig functions are sometimes written arcsin, arccos, arctan in textbooks; they're the same thing. In DEG mode, sin⁻¹(0.5) returns 30 (degrees). In RAD mode it returns π/6 ≈ 0.5236.

Domain limits matter: asin and acos only accept inputs in [−1, 1] — outside this range you'll get NaN because no real angle has a sine greater than 1. atan accepts any real number and returns an angle in (−90°, 90°) in DEG mode or (−π/2, π/2) in RAD mode.

Common trig identities you can verify:

sin(x)^2 + cos(x)^2       → always 1 (Pythagorean identity)
sin(2*30) = 2*sin(30)*cos(30)  → 0.866 = 0.866 (double-angle)
tan(45) = sin(45)/cos(45)  → 1 = 1

Logarithms: ln vs. log₁₀

The calculator offers both logarithm bases because the two are used in fundamentally different domains:

ln (natural logarithm, base e) — used in continuous growth and decay models, probability distributions, calculus, and information theory. ln(1) = 0, ln(e) = 1, ln(e^3) = 3. The natural log appears in compound interest formulas, radioactive decay rates, and entropy calculations.

log₁₀ (common logarithm, base 10) — used in engineering, acoustics (decibels), chemistry (pH), and earthquake magnitude (Richter scale). log10(1) = 0, log10(10) = 1, log10(1000) = 3. Each unit on a log₁₀ scale represents a factor of 10.

Converting between bases: log base b of x = ln(x) / ln(b). So log base 2 of 1024 = log(1024) / log(2) = 10. Enter this as log(1024) / log(2) in the calculator.

Example — pH calculation: pH = −log₁₀([H⁺]). For a hydrogen ion concentration of 0.001 mol/L: 0 - log10(0.001) = 3. Battery acid at [H⁺] = 1 mol/L gives pH 0; pure water at [H⁺] = 10⁻⁷ gives pH 7.


Factorial and Combinatorics

The n! button appends a ! to the current expression. Factorial is defined for non-negative integers: 0! = 1, 1! = 1, 2! = 2, 3! = 6, and so on up to about 170! before exceeding floating-point range.

Combinations and permutations are built from factorials:

Combinations (choosing k items from n without order):

C(n, k) = n! / (k! × (n−k)!)
C(10, 3) = 10! / (3! × 7!) = 3628800 / (6 × 5040) = 120

Enter as: 10! / (3! * 7!)

Permutations (choosing k items from n with order):

P(n, k) = n! / (n−k)!
P(10, 3) = 10! / 7! = 720

Enter as: 10! / 7!

Stirling's approximation check: For large n, ln(n!) ≈ n*log(n) - n. For n=20: log(20!) - (20*log(20) - 20) shows the approximation error directly.


Memory Registers

The four memory buttons save and retrieve values across separate calculations without retyping intermediate results:

Button Action
MC Clear memory (set to 0)
MR Recall memory — pastes stored value into expression
M+ Add current result to memory
M− Subtract current result from memory

A blue dot on the MR button indicates memory holds a nonzero value.

Example — multi-step physics problem (kinetic energy then potential energy comparison):

  1. Calculate kinetic energy: 0.5 * 2.5 * 14^2 = 245 joules → press M+ to store it
  2. Calculate potential energy: 2.5 * 9.81 * 11.5 = 281.8 joules → press M+ to add it
  3. Press MR to recall 526.8 — the total mechanical energy — and continue from there

Memory persists until you click MC or close the tab. Unlike history (which is read-only), memory accumulates across M+ and M− operations, making it useful for running totals.


Order of Operations

The calculator respects standard mathematical precedence (PEMDAS/BODMAS):

  1. Parentheses — innermost first
  2. Exponents — right to left: 2^3^2 = 2^(3^2) = 512
  3. Functions — applied before multiplication: sin(30) * 2 = 0.5 * 2 = 1
  4. Multiplication and Division — left to right
  5. Addition and Subtraction — left to right

Use explicit parentheses whenever the precedence isn't obvious. 1 / 2 * pi is (1/2) * pi = 1.5708, not 1 / (2 * pi) = 0.159.

The live preview shows the result of the current expression as you type — this is the fastest way to catch precedence mistakes before committing to equals.


Common Calculation Patterns

Physics — Projectile Range

v₀ = 25 m/s, θ = 40°, g = 9.81 m/s²
Range = v₀² × sin(2θ) / g

25^2 * sin(2*40) / 9.81

Result: 63.5 meters. Remember to set angle mode to DEG.

Finance — Compound Interest

A = P(1 + r/n)^(nt)
P = 10000, r = 0.05, n = 12, t = 10

10000 * (1 + 0.05/12)^(12*10)

Result: 16,470.09 — what $10,000 becomes at 5% compounded monthly for 10 years.

Statistics — Standard Score (Z-score)

z = (x − μ) / σ
x = 78, μ = 70, σ = 8

(78 - 70) / 8

Result: 1. Then look up P(Z < 1) ≈ 0.8413 in a standard normal table — the score is in the 84th percentile.

Decibels

dB = 20 × log₁₀(V₂ / V₁)
V₂/V₁ = 3.162

20 * log10(3.162)

Result: 10 dB — a factor of ~3.16 in voltage amplitude corresponds to +10 dB.


Comparison with Physical Calculators

Feature This calculator TI-84 Plus Casio fx-991EX
DEG/RAD toggle Yes Yes Yes
Live preview Yes No No
Expression history 50 entries Limited No
Memory registers MC/MR/M+/M− Yes Yes
Keyboard input Full Partial Button only
Complex numbers No Yes Yes
Matrix operations No Yes Yes
CAS (symbolic math) No No Yes (on some)
Available without hardware Yes No No
Privacy 100% local N/A N/A

This calculator targets the overlapping use case: fast expression evaluation, keyboard-friendly workflow, and browser accessibility — without the learning curve of a CAS or the cost of hardware. It replaces a pocket scientific calculator for daily calculation tasks and extends it with history and live feedback.


Privacy and Local Computation

Every calculation runs inside your browser using the mathjs expression engine loaded from the page's JavaScript bundle. No expression is transmitted to any server — there is no backend. This matters in two scenarios:

  • Sensitive formulas: financial models, salary calculations, or medical dosing formulas where the numbers themselves are confidential
  • Airgapped or restricted environments: the calculator works offline once the page is loaded; no network calls are made during computation

You can verify this yourself: open your browser's DevTools Network tab, evaluate an expression, and confirm that no outbound request appears.


Calculation History

The history panel (toggled via the clock icon) stores up to 50 entries in newest-first order. Each entry shows the original expression and its result. Clicking an entry restores the result to the expression field — not the original expression — so you can continue building on the answer without retyping.

When to use history vs. memory:

  • Use memory when you need a value available mid-calculation (intermediate result in a long formula)
  • Use history when you want to review, re-derive, or reuse a result from several steps back

History is cleared when you close or refresh the page. If you need to preserve a series of calculations, copy the expressions into a note or spreadsheet.

A good scientific calculator should feel like an extension of your thinking — not a barrier to it. Type your full expression, check the live preview, and hit equals. For multi-step problems, use memory registers to carry intermediate values; for recurring patterns, pull from the history log. Everything runs locally, so you can work in any environment without worrying about network access or data privacy.

Frequently Asked Questions

Everything you need to know about the Scientific Calculator and how your data is handled.

How do I switch between degrees and radians on the scientific calculator?
Click the DEG or RAD button at the top of the calculator to toggle angle mode. In DEG mode, functions like sin(90) return 1 because 90 degrees equals a quarter turn. In RAD mode, sin(π/2) returns 1 because π/2 radians equals a quarter turn. The current mode is highlighted — always check the mode before entering trig expressions to avoid incorrect results. Most physics and engineering problems specify which unit to use; calculus and higher mathematics typically use radians.
What is the difference between ln and log on the scientific calculator?
ln is the natural logarithm with base e (≈2.71828) — ln(e) = 1, ln(1) = 0. log is the common logarithm with base 10 — log(10) = 1, log(100) = 2. Natural log is used in calculus, physics, and exponential growth/decay equations. Base-10 log is used in pH, decibel (dB) calculations, and data science. To compute log base 2 or any other base b, use the change-of-base formula: log_b(x) = ln(x) / ln(b). For example, log₂(8) = ln(8) / ln(2) = 3.
How do I use memory registers on the scientific calculator?
The calculator has four memory operations: M+ adds the current result to memory; M− subtracts it from memory; MR recalls the stored value into the expression; MC clears memory to zero. Use M+ to accumulate a running total across multiple calculations. For example, to compute (3×4) + (5×6): calculate 3×4=12, press M+, then calculate 5×6=30, press M+, then press MR to get 42. Memory persists across calculations until you press MC. The stored value is shown in the memory indicator when it is non-zero.
How is operator precedence handled in the scientific calculator?
The calculator follows standard mathematical order of operations (PEMDAS/BODMAS): parentheses first, then exponents (^), then multiplication and division left-to-right, then addition and subtraction left-to-right. For example, 2 + 3 × 4 evaluates to 14 (not 20) because multiplication has higher precedence than addition. To override the default order, use parentheses: (2 + 3) × 4 = 20. When entering complex expressions, add parentheses liberally — they make intent explicit and prevent ambiguity in nested function calls like sin(π / 4).
How do I enter a trig function like sin(45°)?
Click the 'sin' button — it appends 'sin(' to your expression — then type 45 and close the parenthesis with ')'. Make sure the angle mode toggle at the top shows DEG for degrees. The expression 'sin(45)' will evaluate to 0.707106781187. Switch to RAD mode if you're working in radians; the same button appends the same text but the calculator uses the raw radian value.
What is the difference between log and ln on a scientific calculator?
On this calculator, 'ln' is the natural logarithm (base e ≈ 2.71828) and 'log' is the base-10 logarithm (common log). So ln(e) = 1, ln(100) ≈ 4.605, log(100) = 2, and log(1000) = 3. Scientists working with exponential growth and decay typically use ln; engineers calculating decibels or pH use log₁₀.
How does the memory system work?
There are four memory operations. MC (Memory Clear) resets stored memory to zero. MR (Memory Recall) pastes the stored value into the current expression. M+ adds the current expression's result to memory. M− subtracts the current result from memory. A blue dot appears on the MR button whenever memory holds a nonzero value. Memory persists across calculations until you click MC or close the page.
Can I type expressions with the keyboard instead of clicking buttons?
Yes. Click the expression field at the top and type any expression using standard math syntax: numbers, +, -, *, / for the four operations, ^ for powers, and function names like sin(, cos(, sqrt(, log(, log10( followed by your argument and a closing parenthesis. Press Enter to evaluate. The calculator accepts the same syntax as most programming languages.
How do I calculate factorials and combinations?
To calculate n factorial, type a number and click the 'n!' button — it appends '!' to your expression. So '7!' evaluates to 5040. For combinations C(n,k) = n! / (k! × (n−k)!), enter the full expression: '10! / (3! * 7!)' evaluates to 120. Factorials above about 170 exceed JavaScript's floating-point range and will return Infinity.
Is there a way to use the result of the last calculation in a new expression?
Yes — pressing equals sets the display to the result, and if you immediately type a number or click a numeric button, the display clears for a fresh expression. But if you click an operator or function button (like +, *, sin(, etc.), the result carries over as the start of your new expression. You can also click any entry in the history panel to restore its result to the display, then continue building on it.
Why does tan(90) not return infinity in DEG mode?
Floating-point arithmetic means 90 degrees in DEG mode converts to Math.PI / 2 in radians, which is not exactly π/2 — it's a very close rational approximation. So tan(90°) returns a very large number (around 1.633e16) rather than true infinity. This is a fundamental limit of IEEE 754 floating-point, not a bug in the calculator. For practical purposes the value is astronomically large and signals a near-vertical asymptote.
Does this calculator support complex numbers or matrix operations?
No — this calculator is designed for real-valued scalar arithmetic. The underlying mathjs library does support complex numbers and matrices, but the expression evaluator here is scoped to real arithmetic with the trig scope overrides applied. For complex number work or linear algebra, a full CAS environment like SageMath or MATLAB is more appropriate.

Common Use Cases

  • Evaluating trig expressions for physics and engineering
  • Chaining multi-step calculations with memory registers
  • Converting between logarithm bases
  • Computing permutations and combinations with factorial
  • Verifying hand-calculated results during homework
  • Quick scientific calculations without installing software
  • Teaching expression syntax and order of operations

Related Tools