Math & statistics calculator

Scientific Calculator

Run advanced calculations with trig, logs, powers, roots, constants, memory, and calculation history. Five modes — Scientific, Statistics, Fractions, Constants, and Basic — with full keyboard entry, correct order of operations, and local history export.

Keyboard entry DEG / RAD History & export Statistics mode Physical constants

Calculations run entirely in your browser. Nothing is uploaded.

DEG
0

What can this scientific calculator do? It evaluates trigonometry (sin, cos, tan and their inverses, in degrees or radians), natural and base-10 logarithms, powers, roots, factorials, percentages, and the constants π and e — across five modes: Scientific, Statistics (descriptive data analysis), Fractions (fraction arithmetic and decimal conversion), Constants (15 NIST physical constants), and Basic (arithmetic). History saves locally and can be exported as CSV. All computation is numeric, runs in your browser, and uses IEEE-754 double precision.

How to use the scientific calculator

  1. Enter an expression. Tap the keypad or click the calculator and type with your keyboard — digits 0–9, + − * / ^, parentheses, % and !. The result previews live as you type; press = or Enter to lock it in.
  2. Switch to the Scientific keypad for functions. Use the Scientific tab for sin, cos, tan, ln, log, powers (xʸ and x²), roots (√), reciprocals (1/x) and factorials (n!). Tap 2nd to reach inverse functions such as sin⁻¹, eˣ and 10ˣ.
  3. Choose degrees or radians. Trigonometry uses degrees by default. Switch to RAD for radian input; the unit badge above the result shows which is active so you never mix them up by accident.
  4. Use memory and history. M+ adds the shown value to memory and MR recalls it; MC clears it. Every result is saved to History on this device — tap an entry to reuse it, copy individual values, search history, or export as CSV.
  5. Explore Statistics, Fractions, and Constants. Switch to Statistics to compute descriptive stats from a data list. Switch to Fractions for fraction arithmetic and decimal-to-fraction conversion. Switch to Constants to browse and insert 15 physical constants.

Statistics mode

Switch to the Statistics tab to compute descriptive statistics from a list of values. Paste numbers from a spreadsheet or type them manually, separated by commas, spaces, or new lines.

The panel calculates:

  • Count, Sum, Mean, Median — core summary measures.
  • Min, Max, Range — the spread of your data.
  • Population standard deviation (σ) and variance (σ²) — when your list is the entire population.
  • Sample standard deviation (s) and variance (s²) — when your list is a sample (uses n−1 in the denominator; requires at least 2 values).

Click Use beside any result to insert it into the main calculator — useful for chaining a standard deviation into a further expression.

Scope: This is a numeric descriptive-statistics tool. It does not perform hypothesis tests, confidence intervals, regression, or inference. Results are rounded by the current display precision.

Fractions mode

The Fractions tab has two tools:

  • Fraction arithmetic — enter any two fractions (numerator and denominator separately) and choose + − × ÷. The result is shown fully reduced and as a decimal. Mixed-number notation is used for improper fractions (e.g. 7/4 → 1 3/4).
  • Decimal → Fraction — enter a decimal (like 0.333 or 0.142857) to find the nearest fraction with a denominator of 1,000 or less. Useful for recognising recurring decimals and confirming division results.

All fractions are reduced to lowest terms using the greatest common divisor. Click Use decimal in calculator to continue with a result in the main expression.

Physical constants

The Constants tab provides quick access to 15 physical and mathematical constants from the NIST CODATA 2018 database. Search by name, symbol, or category (Math, Physics, Chemistry).

Available constants include π, e, the golden ratio φ, speed of light c, gravitational acceleration g, Planck constant h, Avogadro number Nₐ, Boltzmann constant k_B, elementary charge q, gas constant R, Stefan-Boltzmann constant σ, gravitational constant G, proton mass mₚ, electron mass mₑ, and the fine-structure constant α.

Click Use to insert any constant value into the current expression, then switch to the Scientific or Basic tab to continue.

Note: Only numeric magnitudes are inserted. Unit tracking is not performed — maintain consistent units in your calculations.

Keyboard shortcuts

Show keyboard shortcuts

Click or tab into the calculator first, then type. Functions (sin, log, √…) and the constants π and e are entered from the on-screen keypad — reach them with Tab. Every key below also has an on-screen button.

Keyboard shortcuts reference
KeyAction
0 – 9Enter digits
.Decimal point
+ − * /Add, subtract, multiply, divide
^Exponent / power, e.g. 2^10
( )Open and close parentheses
%Percent
!Factorial
= or EnterEvaluate the expression
BackspaceDelete the last entry
Esc or DeleteClear everything (AC)

Tip: use your browser's print (Ctrl/Cmd + P) to save this page as an offline reference.

Worked examples

Each of these evaluates live in the calculator above — tap an example chip to load it. They show how the engine handles angles, logarithms, powers, factorials, percentages, implicit multiplication, and scientific notation.

Worked example expressions and results
ExpressionResultWhat it shows
sin(30)0.5Trigonometry in degrees — the sine of a 30° angle. Switch to RAD and you would type sin(π/6).
log(1000)3The base-10 logarithm: 10³ = 1000. Use ln for the natural (base-e) logarithm.
2^101024A power: two to the tenth. The xʸ key inserts ^; x² is a one-tap shortcut for squaring.
5!120A factorial: 5 × 4 × 3 × 2 × 1. Defined only for whole numbers from 0 upward.
200 + 10%220Contextual percent — 10% of 200 is added. On its own, 10% would simply be 0.1.

Common functions explained

A quick reference to the functions you will use most. Every one has an on-screen button and evaluates live in the calculator above.

sin · cos · tan

Trigonometry of an angle. In DEG, sin(30) = 0.5. Tap 2nd for the inverses sin⁻¹, cos⁻¹, tan⁻¹, plus the hyperbolic sinh, cosh, and tanh.

log vs ln

log is base 10, so log(1000) = 3. ln is the natural log (base e ≈ 2.718), so ln(e) = 1. log2 gives base 2. All need a value above 0.

Powers & roots

Use ^ or xʸ for powers (2^10 = 1024), x² to square, √ for the square root (√144 = 12), and ∛ via 2nd for the cube root.

Factorial (n!)

n! multiplies every whole number up to n, so 5! = 120. Defined for whole numbers of 0 or more (0! = 1); decimals and negatives return a short message.

Order of operations

Standard PEMDAS: parentheses, exponents, then ×/÷, then +/−. Exponents are right-associative (2^3^2 = 512) and a number beside a bracket multiplies: 2(3+1) = 8.

Degrees vs radians (DEG / RAD)

Degrees split a circle into 360 parts; radians use the arc length of a unit circle, so a full circle is 2π. Use DEG for everyday geometry and RAD for calculus and physics. The active unit is shown in the badge above every result, and inverse trig functions return their answer in the same unit — so if sin(30) does not read 0.5, check whether you are in RAD (where you would enter sin(π/6) instead).

How percentages are interpreted

A standalone percentage is just a fraction: 50% = 0.5. In addition and subtraction it becomes a percentage of the left-hand value — 200 + 10% = 220 and 200 − 10% = 180 — which matches how shops and most pocket calculators apply discounts and markups. With × or ÷ it stays a plain fraction.

Common input errors

When an expression cannot be evaluated, the calculator shows a short, plain-language message in the result area (and announces it to screen readers) instead of returning a wrong number. The usual cases:

Common input errors and how to fix them
If you…What you will seeHow to fix it
Leave a bracket unclosed"Missing a closing parenthesis"Close every "(" with a ")". The ( ) key inserts whichever bracket fits next.
Divide by zero"Cannot divide by zero"Check the denominator — dividing by zero has no defined value.
Take a factorial of a decimal or negative"Factorial needs a whole number"n! works only for whole numbers of 0 or more. Use 5!, not 5.5! or (−3)!.
Take a log or √ of 0 or a negative"A logarithm needs a value greater than 0"log, ln and log2 need a value above 0; √ needs 0 or more.
Confuse DEG and RADA correct value for the wrong unit — no errorIf sin(30) isn't 0.5, check the unit badge — you may be in RAD. Switch to DEG, or enter sin(π/6).
Expect exact very-long decimalsA rounded value, sometimes in ×10ⁿ formResults round for display; choose a fixed 2–8 decimals, or see Limitations below.

Limitations

  • Numeric calculator, not a CAS. This calculator evaluates expressions to numbers. It does not perform symbolic algebra, derivatives, integrals, equation solving, or matrix operations. For those, use a computer algebra system such as Wolfram Alpha or SymPy.
  • Results are rounded for display. Calculations use IEEE-754 double precision (about 15–17 significant digits). The Auto display shows up to 12 significant figures and absorbs tiny rounding artefacts, so identities like cos(90°) read 0 rather than 6×10⁻¹⁷. You can fix the output to 2, 4, 6, or 8 decimals.
  • Floating-point precision limits. A few trailing digits can differ from an exact hand calculation, and very large or very small numbers switch to ×10ⁿ scientific notation. Very large factorials (n > 170) overflow to infinity.
  • Statistics is descriptive only. The Statistics mode computes descriptive statistics on a list of numbers. It does not perform hypothesis tests, regression, or statistical inference.
  • Fraction approximation. Decimal-to-fraction conversion finds the nearest fraction with denominator ≤ 1,000. For longer repeating decimals, the approximation may not be exact.
  • Best practice. Double-check figures that inform important academic, financial, or engineering decisions.

Frequently asked questions

What is a scientific calculator?

A scientific calculator evaluates complex mathematical expressions — trigonometry, logarithms, powers, roots, and factorials — beyond the four basic arithmetic operations. This browser-based version also includes descriptive statistics, fraction tools, and a physical constants panel. Everything runs in your browser with no installation required.

How does the calculator decide the order of operations?

It follows standard mathematical precedence (PEMDAS/BODMAS): parentheses first, then exponents, then multiplication and division, then addition and subtraction. Exponents are right-associative, so 2^3^2 means 2^(3^2). A leading minus is looser than a power, so −3² = −(3²) = −9, while 2^−3 = 0.125. Implicit multiplication is supported: 2π, 2(3+1), and 3sin(30) all work.

What is the difference between DEG and RAD?

It sets the unit for trigonometry. In DEG (the default) a full circle is 360°, so sin(30) = 0.5. In RAD a full circle is 2π, so you would enter sin(π/6) for the same result. The badge above the result always shows which unit is active, and inverse functions (sin⁻¹, cos⁻¹, tan⁻¹) return their answer in the same unit.

How does the percent (%) key work?

On its own, x% means x ÷ 100, so 50% = 0.5. In addition and subtraction it is contextual: 200 + 10% adds 10% of 200 to give 220, and 200 − 10% gives 180. With multiplication or division it stays as a plain fraction, so 5 × 10% = 0.5. This matches how most everyday and desktop calculators treat percentages.

Why does tan(90°) show "undefined"?

The tangent of 90° (and 270°, etc.) is undefined — its graph has a vertical asymptote there. Because 90° is not exactly representable in binary, a naïve calculation would return a huge but finite number that misrepresents the truth, so the calculator reports it as undefined instead. The same applies to √ of a negative number, ln of zero, and dividing by zero.

Related calculators

Sources & method

Method. Every result is computed in your browser by a hand-rolled expression engine (tokeniser → parser → evaluator) with no third-party math library, validated against hand-checked cases on every change. See Limitations for precision and rounding details.

About this calculator

This is a browser-based numeric calculator. Results are computed in your browser using IEEE-754 double precision and rounded for display. It is not a computer algebra system and does not perform symbolic algebra or calculus. For high-stakes work, verify critical figures independently.

email us

Authorship & verification

Written and maintained by

  • Formula and examples verified on 15 June 2026
  • Educational estimate only

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.