Scientific Calculator
Free online scientific calculator for trig, roots, logs and powers. Type any expression with sin, cos, sqrt or exponents and get an instant accurate result.
About this tool
Need sine, cosine, square roots, or logarithms without digging out a physical calculator? Our free online scientific calculator evaluates full expressions right in your browser - no download, no signup. It works in degrees or radians, with an on-screen keypad, history, and memory, and it handles powers, roots, factorials, and logarithms.
Type expressions naturally, like sin(30) + sqrt(16) * 2^3, and get an accurate result instantly. It is ideal for homework, engineering estimates, and quick checks - and every calculation happens on your device, so nothing you type is ever sent anywhere.
By Azhar Hussain · Last updated: 12 November 2026
How to use
Type your expression into the box using standard symbols: + - * / for basic math, ^ for powers, and % for remainder. For functions, write sin(), cos(), tan(), asin(), acos(), atan(), sqrt(), cbrt(), log() for base-10, log2(), ln() for the natural logarithm, exp(), and abs(). You can also tap the keypad - it inserts digits, operators, and functions at the cursor - and press Enter to calculate or Escape to clear the box.
Angles use DEGREES by default, because that is what school homework uses - sin(30) gives 0.5. Switch the Angle mode box to Radians for calculus, physics, and programming, where sin(30) means 30 radians. The mode also affects inverse trig: asin(0.5) gives 30 in degrees mode and about 0.5236 in radians mode.
Use pi and e as constants, Ans for your last answer, and ! for factorials (up to 170). Scientific notation works too: 1.5e-3 means 0.0015, and you can write 2(3+4) or 2pi without a * sign. Your last 20 calculations stay in the History list below the result - click one to run it again - and M+ / MR store a number in memory. If something cannot be evaluated, you get a specific error message explaining why, instead of a wrong answer.
The math behind it
The calculator reads your expression with a small parser that only allows digits, operators, parentheses, and the named math functions - no code you type is ever executed, and everything runs with the browser's built-in math library. Order of operations is brackets first, then functions and factorials, then powers (right-associative: 2^3^2 means 2^(3^2) = 512), then multiplication, division, and remainder, then addition and subtraction. So 2+3*4 = 14, and -2^2 = -4, because the power is worked out before the minus sign is applied.
Trigonometric functions convert angles using radians = degrees x pi / 180 when degrees mode is on. Results of 1,000,000,000,000,000 (10^15) or more, and results smaller than 0.000001 (10^-6), are shown in exponent form such as 1.5e+21; anything in between shows up to 6 decimal places. Factorials stop at 170, because 171! is larger than the biggest number JavaScript can store.
Function reference
Every function this calculator understands, with an example in degrees mode (the default). Results are shown as the calculator displays them, with trailing zeros trimmed.
| Function | What it does | Example | Result |
|---|---|---|---|
| sin( ) | Sine of an angle | sin(30) | 0.5 |
| cos( ) | Cosine of an angle | cos(60) | 0.5 |
| tan( ) | Tangent of an angle | tan(45) | 1 |
| asin( ) | Inverse sine - the angle whose sine is x | asin(0.5) | 30 |
| acos( ) | Inverse cosine | acos(0.5) | 60 |
| atan( ) | Inverse tangent | atan(1) | 45 |
| sqrt( ) | Square root | sqrt(144) | 12 |
| cbrt( ) | Cube root (works for negative numbers too) | cbrt(27) | 3 |
| log( ) | Base-10 logarithm | log(1000) | 3 |
| log10( ) | Same as log( ) - base-10 logarithm | log10(100) | 2 |
| log2( ) | Base-2 logarithm | log2(256) | 8 |
| ln( ) | Natural logarithm (base e) | ln(e) | 1 |
| exp( ) | e raised to a power | exp(2) | 7.389056 |
| abs( ) | Absolute value (distance from zero) | abs(-7) | 7 |
| ! and fact( ) | Factorial - whole numbers from 0 to 170 | 5! | 120 |
| pi | The constant pi, about 3.141593 | 2*pi | 6.283185 |
| e | The constant e, about 2.718282 | e^2 | 7.389056 |
| Ans | Your last result (empty until you calculate once) | Ans*2 | Twice your last answer |
| ^ | Power, right-associative | 2^10 | 1024 |
| % | Remainder (modulo), not percent | 17%5 | 2 |
In radians mode the trig examples give different values: sin(30) is about -0.988032 there, because 30 means 30 radians. Function names are not case-sensitive, so SIN(30) works the same as sin(30).
Worked examples
Each of these was run through the calculator in degrees mode. Try them yourself - type or tap the expression exactly as shown.
| Expression | Result | Why |
|---|---|---|
| sin(30) + sqrt(16) * 2^3 | 32.5 | 0.5 + 4 x 8 |
| 2(3+4) | 14 | Implicit multiplication: 2 x 7, no * needed |
| 1e5 + 2.5e3 | 102500 | 100000 + 2500 in scientific notation |
| 5! / (2! * 3!) | 10 | Combinations: 5 choose 2 |
| 2^-3 | 0.125 | A negative exponent means the reciprocal: 1 / 2^3 |
| -2^2 | -4 | The power binds before the minus: -(2^2). Use (-2)^2 for 4 |
Standard trig values
The exact values students are expected to know, with the decimal the calculator shows in degrees mode. Use them to check your mode: if sin(30) does not give 0.5, you are in radians mode.
| Angle | sin | cos | tan |
|---|---|---|---|
| 0° | 0 | 1 | 0 |
| 30° | 1/2 = 0.5 | √3/2 ≈ 0.866025 | 1/√3 ≈ 0.577350 |
| 45° | 1/√2 ≈ 0.707107 | 1/√2 ≈ 0.707107 | 1 |
| 60° | √3/2 ≈ 0.866025 | 1/2 = 0.5 | √3 ≈ 1.732051 |
| 90° | 1 | 0 | Undefined |
tan(90°) is undefined, because cos(90°) is 0 and division by zero has no answer. In degrees mode the calculator says so instead of showing a huge number.
Logarithm rules
Four identities that turn hard log problems into easy ones. Each check below was verified with the calculator (log means base 10 here).
| Rule | Form | Check |
|---|---|---|
| Product | log(a x b) = log(a) + log(b) | log(100 x 10) = 2 + 1 = 3 |
| Quotient | log(a / b) = log(a) - log(b) | log(1000 / 10) = 3 - 1 = 2 |
| Power | log(a^b) = b x log(a) | log(10^3) = 3 x 1 = 3 |
| Change of base | log_b(x) = ln(x) / ln(b) | ln(32) / ln(2) = 5, and log2(32) = 5 |
The change-of-base rule is how you get a logarithm in any base: for base 2, just use log2( ) directly.
Degrees or radians - which should you use?
Both measure angles; the right one depends on what you are doing. This calculator defaults to degrees, and the Angle mode box switches in one click.
| Situation | Use |
|---|---|
| School homework, geometry, triangles | Degrees |
| Engineering drawings and surveying | Degrees |
| Calculus (derivatives and integrals of trig functions) | Radians |
| Physics (waves, rotations, angular motion) | Radians |
| Programming (most languages measure trig in radians) | Radians |
To convert by hand: radians = degrees x pi / 180, and degrees = radians x 180 / pi. A full circle is 360 degrees, which is 2 x pi radians. If a trig answer looks wrong, check the mode first - it is the most common cause of "wrong" trig answers.
Order of operations and powers
The calculator follows the standard order, highest priority first:
1. Brackets 2. Functions and factorials 3. Powers (right-associative) 4. Multiplication, division, and remainder, including implicit multiplication 5. Addition and subtraction.
Three cases trip people up. First, powers chain to the right: 2^3^2 means 2^(3^2) = 512, not (2^3)^2 = 64. Second, a minus in front of a power applies after the power: -2^2 = -4, while (-2)^2 = 4. Third, implicit multiplication still respects powers: 2(3)^2 = 18, because the power applies to the 3 before the multiplication. When in doubt, add brackets - they always win.
Memory and multi-step calculations
Ans always holds your last result, and M+ / MR give you one memory slot. A worked example: type 3+4 and calculate to get 7, press M+ to store it, type 5+6 and calculate to get 11, then type MR*Ans and calculate to get 77. Chains like Ans*2 keep building on the previous answer, and MC clears the memory.
History keeps your last 20 calculations below the result - click any entry to run it again. History, memory, and Ans live only in the open page: refresh or close the tab and they reset, and nothing is ever sent anywhere.
Frequently asked questions
Are trig functions in degrees or radians?
What is the difference between log and ln?
Is my expression data sent anywhere?
How do I switch between degrees and radians?
How do I calculate inverse trig (sin inverse, cos inverse, tan inverse)?
What is the largest factorial this calculator can handle, and why?
How do I type negative powers?
How do I use Ans and memory for multi-step calculations?
What does the % key do - percent or remainder?
Related tools
Math Calculator
Fraction Calculator
Percentage Calculator
BMI Calculator
Age Calculator
Tip Calculator
💬 Comments
Have a question about this page, or an idea to make it better? Share it below — your feedback helps everyone who uses this site.