Scientific Calculator

Type a maths expression with trig, square roots, logs, pi or e and read the result straight away. Your browser does the calculation.

Updated

Everyday calculators● Free No upload Instant

Loading Scientific Calculator…

Your browser is preparing the tool. It runs 100% locally.

Quick answer

Type a maths expression and the tool evaluates it. It supports the usual operators, parentheses, the constants pi and e, and functions such as sin, cos, tan, sqrt, log and ln. Two conventions to remember: trigonometric functions work in radians (multiply by deg for degrees, so sin(30*deg) is 0.5), and log is base 10 while ln is the natural log. Your browser does the calculation and nothing is uploaded.

What the Scientific Calculator does

The tool works out the value of an expression you type, as a scientific calculator would. It handles arithmetic, powers, parentheses and the common scientific functions and constants, and returns one number.

Use it for anything past a basic sum: a trig value, a square root, a logarithm, or an expression that mixes several of them, without hunting for a physical calculator.

How it works

The tool reads your expression, recognises the constants pi and e and the functions you use, and evaluates it in the normal order of operations, with parentheses grouping as you would expect. It rounds the result to about eight decimal places.

Two conventions matter. The trigonometric functions take angles in radians, so to work in degrees you multiply by deg, as in sin(30*deg). The function log is the base-10 logarithm and ln is the natural logarithm. Use the caret for powers.

Methodology

  1. Read the expression. Take the maths expression you type.
  2. Resolve constants and functions. Recognise pi and e and functions like sin, sqrt, log and ln.
  3. Evaluate in order. Compute following the standard order of operations and parentheses.
  4. Show the result. Return the value, rounded to about eight decimal places.

What it supports

operators: + − × ÷ and ^ for powers · parentheses ( ) constants: pi, e · functions: sin, cos, tan, sqrt, log (base 10), ln, abs trig is in radians; multiply by deg for degrees
Worked example
2*pi*sqrt(2) → 8.88576588 · sin(30*deg) → 0.5

Trigonometric functions work in radians; use deg to enter degrees. log is base 10 and ln is the natural log. Results are rounded to about eight decimal places.

Assumptions

  • Trigonometric functions take radians; multiply an angle by deg to use degrees.
  • The function log is base 10 and ln is the natural logarithm. The caret raises to a power.
  • Results are rounded to about eight decimal places, and the expression may use only the supported operators, functions and constants.

Standards and references

  • Order of operations: The usual precedence applies: powers, then multiplication and division, then addition and subtraction. Parentheses override that order.
  • Radians for trigonometry: Like most programming and scientific tools, the trig functions use radians. The deg helper converts a degree value into radians, so sin(30*deg) gives 0.5.
  • Logarithm bases: The function log is the base-10 (common) logarithm and ln is the natural logarithm to base e. The two differ by a constant factor, so pick the right one.

Accuracy and limits

Supported expressions are computed correctly and rounded to about eight decimal places. The usual order of operations and parentheses apply.

Trigonometry is in radians. A common slip is entering degrees directly: sin(30) is not 0.5, because 30 is read as radians. Multiply by deg, as in sin(30*deg), to get the value you expect.

Rounding to eight decimals shortens very long decimals, and very large or very small numbers hit the normal floating-point limits of a computer, so results at those extremes can lose a little precision.

Only the supported operators, constants and functions are accepted. If an expression contains anything else, the tool rejects it as invalid and does not guess, so check the spelling against the list of functions.

Real-world uses

Evaluating an expression

Compute a multi-part maths expression in one go.

Trig and roots

Work out sines, cosines and square roots, such as sqrt(2) or cos(60*deg).

Logarithms

Calculate base-10 logs with log or natural logs with ln.

Homework and quick checks

Check a step in a physics or maths problem that needs pi, e or a power.

When it fits, and when it doesn't

Good for

  • Evaluating a maths expression
  • Trig, roots, logs and constants
  • Using pi and e in a calculation
  • Quick scientific computations

Not the best choice for

  • Degrees without the deg helper
  • Symbolic algebra or equation solving
  • Matrices, calculus or statistics
  • Arbitrary-precision or exact fractions

For degrees, multiply angles by deg. Solving equations, calculus and matrices need a computer-algebra tool, and exact fractions or very high precision need a specialised calculator. This one evaluates numeric expressions.

Frequently asked questions

Why is sin(30) not 0.5?
The trig functions use radians, so 30 is read as 30 radians. For 30 degrees, multiply by deg: sin(30*deg) converts the angle to radians and gives 0.5.
Is log base 10 or natural?
The function log is base 10, the common logarithm. For the natural logarithm to base e, use ln. The two differ by a constant factor, so the choice changes the result.
How do I raise a number to a power?
Use the caret. Two to the power of ten is 2^10, which is 1024. The caret follows the usual order of operations, so add parentheses when you need to group.
What functions and constants are supported?
The arithmetic operators and powers, parentheses, the constants pi and e, the functions sin, cos, tan, sqrt, log (base 10), ln and abs, and deg to convert degrees to radians.
How precise is the result?
It is rounded to about eight decimal places. The calculation uses standard floating-point arithmetic, so very large or very small numbers carry the usual small precision limits.
Why does it say my expression is invalid?
The expression contains a symbol or function the tool does not support, or a typo. It accepts only the listed operators, constants and functions and will not guess at anything else, so check the spelling and syntax.
Can it solve equations or do algebra?
No. It evaluates numeric expressions only. To solve for a variable or simplify an expression, use a computer-algebra system.
How do I enter pi and e?
Type pi for the ratio of a circle's circumference to its diameter, and e for Euler's number. The tool substitutes their values, so 2*pi works as you would expect.
Does it follow the order of operations?
Yes. Powers come first, then multiplication and division, then addition and subtraction, and parentheses override that order.
Can it work in fractions or give an exact answer?
No. It returns a decimal rounded to about eight places. For exact fractions or arbitrary precision you need a calculator that keeps symbolic or rational results.
Is my expression uploaded?
No. Your browser evaluates the expression and sends nothing to a server.
How do I take a square root or cube root?
Use sqrt for a square root, as in sqrt(2). For a cube root, raise to the power of one third: 27^(1/3) gives 3.

References

Trig functions here take radians (sin(30*deg) gives 0.5), log means base 10 and ln the natural log, and every answer is rounded to about eight decimal places.

Popular

Percentage Calculator

Get three percentage answers on one screen: X% of Y, X as a percent of Y, and the change between two numbers.

Everyday calculatorsOpen Tool
Popular

Unit Converter

Convert length, weight and volume units in your browser. Pick a category, type a value and the result appears at once, worked out through a fixed base unit with standard factors.

UtilityOpen Tool
Popular

Age Calculator

Get your exact age in years, months and days on any date, including the cut-off date an exam or admission form names.

Everyday calculatorsOpen Tool
PopularHot

BMI Calculator

Find your BMI from height and weight, with the WHO category and a plain note on what BMI misses.

Everyday calculatorsOpen Tool
Popular

Discount Calculator

Work out the sale price and how much you save from a percentage discount. Enter the original price and the discount.

Everyday calculatorsOpen Tool

Date Difference Calculator

Count the days between two dates, with the same span in weeks and approximate months and years. Pick a start and an end date.

Everyday calculatorsOpen Tool

Back to the Scientific Calculator

Enter your numbers at the top of the page. Nothing you type leaves this device.