Scientific Calculator
Trigonometry, logarithms, exponents, and more.
A scientific calculator in your browser
This calculator handles everything a standard scientific model does - trigonometry, logarithms, exponents, roots, factorials and the common constants - without needing to be installed or bought. It runs entirely in your browser, so nothing you type is sent anywhere.
Key takeaways
- Supports trigonometry, logarithms, powers, roots, factorials and constants.
- Operator precedence follows the standard order of operations.
- Trigonometric functions use degrees by default; switch to radians with the RAD button.
- log means base 10 and ln means base e; mixing them is a common error.
- Keyboard input works for digits and the basic operators.
Functions available
| Function | Notation | What it does | Example |
|---|---|---|---|
| Square root | √x | The number that squares to x | √16 = 4 |
| Power | x^y | x raised to the power y | 2^10 = 1,024 |
| Square | x^y with y = 2 | x multiplied by itself | 7^2 = 49 |
| Sine | sin | Trigonometric sine | sin 30° = 0.5 |
| Cosine | cos | Trigonometric cosine | cos 60° = 0.5 |
| Tangent | tan | Trigonometric tangent | tan 45° = 1 |
| Inverse sine, cosine, tangent | sin⁻¹, cos⁻¹, tan⁻¹ | The angle with that sine, cosine or tangent | sin⁻¹ 0.5 = 30° |
| Common log | log | Logarithm base 10 | log 1000 = 3 |
| Natural log | ln | Logarithm base e | ln e = 1 |
| Factorial | n! | Product of all integers up to n | 5! = 120 |
| Remainder | mod | What is left after whole-number division | 10 mod 3 = 1 |
| Pi | π | Circle constant | ≈ 3.14159265 |
| Euler's number | e | Base of natural logarithms | ≈ 2.71828183 |
Order of operations
Expressions are evaluated in the standard order, often remembered as BODMAS or PEMDAS:
- Brackets - innermost first
- Orders - exponents and roots
- Division and multiplication - left to right
- Addition and subtraction - left to right
So 2 + 3 × 4 is 14, not 20, because multiplication is evaluated before addition. Use brackets whenever you want a different order: (2 + 3) × 4 = 20.
Degrees and radians
Trigonometric functions can interpret an angle in either degrees or radians, and getting this wrong produces answers that are silently and completely wrong. This calculator starts in degrees; the DEG and RAD buttons above the display switch the mode for sin, cos, tan and their inverses, which then return degrees or radians to match.
| Degrees | Radians | sin | cos | tan |
|---|---|---|---|---|
| 0° | 0 | 0 | 1 | 0 |
| 30° | π/6 | 0.5 | 0.866 | 0.577 |
| 45° | π/4 | 0.707 | 0.707 | 1 |
| 60° | π/3 | 0.866 | 0.5 | 1.732 |
| 90° | π/2 | 1 | 0 | undefined (shows Error) |
| 180° | π | 0 | -1 | 0 |
Values rounded to 3 decimals. To convert: radians = degrees × π / 180. Degrees = radians × 180 / π.
Logarithms in practice
A logarithm answers "what power do I need?" - log₁₀(1000) = 3 because 10³ = 1,000.
- log means base 10, standard for scientific notation, decibels and pH.
- ln means base e ≈ 2.71828, which appears throughout growth and decay problems.
- Any base can be computed with the change-of-base rule: logb(x) = ln(x) ÷ ln(b).
The useful property is that logarithms turn multiplication into addition: log(a × b) = log(a) + log(b). Before electronic calculators this was how large multiplications were done, using printed log tables and slide rules.
Useful identities
| Identity | Meaning |
|---|---|
| sin²θ + cos²θ = 1 | The fundamental Pythagorean identity |
| tan θ = sin θ / cos θ | Definition of tangent |
| a^m × a^n = a^(m+n) | Multiplying powers adds exponents |
| (a^m)^n = a^(m×n) | A power of a power multiplies exponents |
| a^0 = 1 | Anything to the power zero is one |
| a^(-n) = 1 / a^n | A negative exponent means a reciprocal |
| √a = a^(1/2) | Roots are fractional powers |
| e^(ln x) = x | Exponential and natural log are inverses |
Things that produce an error
- Division by zero is undefined and shows Error.
- The square root of a negative number has no real value - it requires complex numbers.
- The logarithm of zero or a negative number is undefined in the real numbers.
- tan 90° is undefined, because cosine is zero there.
- Factorials of non-integers or negatives are not defined by the standard factorial function.
- Very large factorials exceed the range of floating-point arithmetic - 170! is the largest this calculator can show; 171! overflows.
- A minus sign directly before a power, as in -3^2, is ambiguous and shows Error; add brackets.
Frequently Asked Questions
Is this scientific calculator free?
Yes, entirely free with no sign-up, no download and no limit on use. It runs in your browser, so the numbers you enter stay on your own device.
What is the difference between log and ln?
log is the logarithm to base 10, so log(1000) = 3. ln is the natural logarithm to base e, approximately 2.71828, so ln(e) = 1. Using one where the other is meant is one of the most common calculator errors.
Why does sin(30) give a different answer than I expect?
Almost certainly because of the angle mode. In degree mode sin(30) is 0.5; in radian mode it is about -0.988. This calculator starts in degrees; check which of DEG and RAD is highlighted before trusting a trigonometric result, and verify with a known value such as sin 30° = 0.5.
How do I convert between degrees and radians?
Multiply degrees by π/180 to get radians, or multiply radians by 180/π to get degrees. So 90 degrees is π/2 radians, approximately 1.5708.
What order does the calculator evaluate operations in?
The standard order: brackets first, then exponents and roots, then multiplication and division left to right, then addition and subtraction left to right. So 2 + 3 × 4 is 14, not 20. Use brackets whenever you want a different order.
What is a factorial?
The product of all positive integers up to a number, written with an exclamation mark. 5! is 5 × 4 × 3 × 2 × 1 = 120. Factorials grow extremely fast and are used mainly in probability and combinatorics.
Why can I not take the square root of a negative number?
Because no real number multiplied by itself gives a negative result. Square roots of negatives exist in the complex numbers, expressed using the imaginary unit i, but a standard scientific calculator works only with real numbers.
Can I use my keyboard instead of the buttons?
Yes. Digits, the decimal point, brackets and + - * / work directly from the keyboard, with Enter for equals and Backspace to delete; % types mod (remainder). Functions such as sin and log use the buttons.
Is there a percent key?
No. The mod key (also % on the keyboard) gives the remainder after division, so 10 mod 3 = 1, as % does in most programming languages. For percentages, such as 15% of 200, use the percentage calculator.
Why does 0.1 + 0.2 not give exactly 0.3?
Because computers store numbers in binary and some decimal fractions cannot be represented exactly. The resulting error is around one part in ten quadrillion and never matters in practice, but it is a property of floating-point arithmetic rather than a fault in the calculator.