Scientific Calculator
Settings
A free scientific calculator for school, university and work. Type a whole expression, see the result update as you go, and switch between degrees and radians. It handles trigonometry, logarithms, powers and roots, factorials, combinations, fractions and memory, and it runs entirely in your browser.
What the scientific calculator does
- Sine, cosine and tangent, their inverses and hyperbolic forms
- Degrees, radians and gradians
- Natural and common logarithms, and logarithms to any base
- Powers, roots and factorials
- Combinations (nCr) and permutations (nPr)
- Results as fractions or decimals
- Scientific, engineering and fixed-decimal (FIX) number formats
- Memory, History and full keyboard input
How to use the scientific calculator
- Type the expression the way you would write it, with the keys or your keyboard. A function key such as sin or log opens its parenthesis for you: type the value, then close it or just press =.
- The line under the expression shows a preview of the result while you type. Press = or Enter to keep it; it becomes Ans, which the next calculation can use.
- Press 2nd for the functions printed second on a key, such as sin⁻¹, √ or 10ˣ. It applies to the next key only; press it twice quickly to keep it on.
- Use the arrow keys to move the cursor inside the expression and fix a typo without starting again. After a result, ← brings the expression back for editing.
- Choose DEG or RAD above the keys before you use sin, cos or tan. Your choice is remembered on this device.
Degrees or radians?
Trigonometric functions depend on the angle unit. In degrees a full turn is 360; in radians it is 2π, about 6.283. The same key press gives different answers: sin(30) is 0.5 in degrees but about −0.988 in radians, because 30 radians is almost five full turns.
Use degrees for geometry, surveying and most school problems, and radians for calculus, physics formulas and anything with π in the angle, such as sin(π/6) = 0.5. Inverse functions answer in the unit you have selected: sin⁻¹(0.5) gives 30 in degrees and π/6 ≈ 0.5236 in radians.
Exact angles give exact answers: sin(180°) is 0 and tan(45°) is 1, not a tiny rounding leftover. Values that do not exist, such as tan(90°), are reported as an error. To enter an angle in another unit, type deg(…), rad(…) or grad(…): sin(grad(100)) is 1 in either mode.
GRAD is the third angle unit, used in surveying and in parts of Europe: a right angle is 100 gradians and a full turn 400, so sin(100) is 1 and cos(200) is −1 in GRAD. The display shows DEG, RAD or GRAD, and the D key on a keyboard cycles through the three.
Functions and keys
Every key below can also be typed. A function always takes its value in parentheses, so write sin(30), not sin 30.
| Key | What it calculates | Example |
|---|---|---|
| sin cos tan | Sine, cosine and tangent of an angle | |
| sin⁻¹ cos⁻¹ tan⁻¹ | Inverse functions: the angle with this sine, cosine or tangent | |
| ln · eˣ | Natural logarithm (base e) and e to the power of x | |
| log · 10ˣ | Common logarithm (base 10) and 10 to the power of x | |
| x² x³ xʸ | Square, cube and any power | |
| √x ∛x ʸ√x | Square root, cube root and the y-th root of x | |
| x⁻¹ | Reciprocal, 1 divided by x | |
| x! | Factorial of a whole number from 0 to 170 | |
| nCr · nPr | Combinations and permutations of r items out of n | |
| mod | Remainder of a division | |
| EXP | Scientific notation: times ten to the power of | |
| |x| | Absolute value, the distance from zero | |
| HYP | Hyperbolic functions: press HYP, then sin, cos or tan (with 2nd, their inverses) | |
| logyx · log2 | Logarithm to any base: type the base, press logᵧx, type x; 2nd gives log₂ | |
| (−) | Negative sign for the next number; after a result, its negative | |
| Rnd(x) | Round to the nearest whole number, halves away from zero | |
| GRAD | Gradians: a right angle is 100, a full turn 400 | |
| exp deg rad grad | Typed only: the exponential function and the angle converters deg(), rad(), grad() |
Order of operations
The calculator follows standard precedence: parentheses and functions first, then factorials and percentages, then powers and roots, then the sign of a number, then nCr and nPr, then multiplication, division and modulo, and finally addition and subtraction. Powers and roots group from the right and every other level from left to right. A number in front of a parenthesis, π or a function is multiplied, so 2π and 3sin(30) need no × sign. The table shows one example of each rule.
| Calculation | Result | Rule |
|---|---|---|
| Multiplication before addition | ||
| Parentheses first | ||
| Powers group from the right | ||
| The minus sign applies after the power | ||
| Factorial before power | ||
| nCr before multiplication | ||
| A number before a parenthesis multiplies it | ||
| Same level: left to right |
Number formats and fractions
Auto shows ordinary numbers up to 12 significant digits and switches to scientific form, such as 1.5×10¹², only for very large or very small results. Scientific always shows one digit before the decimal point. Engineering uses powers of ten that are multiples of three, matching kilo, mega, milli and micro.
The format you choose is shown on the display — SCI or ENG next to DEG or RAD — and applies at once to the result, the live preview and History, even to a zero (0×10⁰). Ordinary numbers look the same in Auto as you typed them, so try a result such as 56 or 0.0012 to see the difference. Engineering keeps the exponent a multiple of 3, which matches unit prefixes: 10³ kilo, 10⁻³ milli, 10⁻⁶ micro.
| Value | Auto | Scientific | Engineering |
|---|---|---|---|
When a result is an exact fraction, the a/b button shows it as one: 0.75 becomes 3/4 and 1/3 + 1/6 becomes 1/2. The button is unavailable for results that are not exact fractions, such as π, √2 or sin(1).
Memory, History and sharing
M+ adds the current result to memory and M− subtracts it; MR inserts the stored value and MC clears it. An M on the display shows that memory holds a value. Memory stays on this device until you clear it.
History keeps your last 50 calculations. Select one to load it again. The share button creates a link that opens this calculator with the same expression and angle unit; the expression stays in the part of the link after #, so it is never sent to our server.
Textbook display
The expression line is drawn like written maths: powers are raised, √ and ∛ draw a bar over what they apply to, and results in scientific form are written as ×10 with a raised exponent. An empty box shows where the next key goes, for example the exponent after xʸ, and the cursor moves through all of it.
Copy and share confirm what happened: the button turns green with a check and a short message such as “Copied” or “Link copied”, or red with the reason when the browser refuses. Exact fractions are drawn stacked, one number over the other, when you select a/b.
Appearance: case colour and large keys
Under the calculator, Appearance offers four case colours — Graphite, Silver, Retro and Midnight — and Large keys for touch screens or easier reading. The choice is remembered on this device and shared with the basic calculator. It changes only how the calculator looks, never what it calculates.
Keyboard shortcuts
Click the calculator or tab to it, then type. Digits and operators also work from anywhere on the page while “Type with the keyboard” is on; letter shortcuts only work while the calculator has focus, so they never clash with the rest of the page.
| Key | What it does |
|---|---|
| 0–9 . | Digits and the decimal point (the comma also works where it is the decimal mark) |
| + - * / ^ | Add, subtract, multiply, divide and raise to a power |
| ( ) ! % | Parentheses, factorial and percent |
| Enter = | Calculate the result |
| Backspace | Delete the character before the cursor |
| Esc Delete | Clear everything |
| ← → Home End ↑ ↓ | Move the cursor; ↑ and ↓ go through History |
| p e E s c t l L r a | π, e, EXP, sin, cos, tan, ln, log, √ and Ans |
| d | Switch between degrees and radians |
Arithmetic and limits
Numbers are read exactly as you type them, and +, −, ×, ÷, %, whole-number powers, n!, nCr, nPr, mod, abs and Rnd work with exact fractions, so 0.1 + 0.2 is exactly 0.3 and 1 ÷ 3 × 3 is exactly 1. sin, cos, tan, logarithms, eˣ, π and roots that do not come out exact use 64-bit floating point, accurate to about 16 significant digits. Every result is rounded once to 12 digits for display, and results above about 1.8×10³⁰⁸ are reported as too large.
Factorials are defined for whole numbers from 0 to 170, and nCr and nPr for whole numbers up to 10,000. The calculator works with real numbers only: √(−4), ln(0) and sin⁻¹(2) are errors, and so is a fractional power of a negative number, such as −8 raised to the power 1/3; use ∛(−8) = −2 for the real cube root. In radians, a whole number too large to be stored exactly (from about 9×10¹⁵) gives an argument error rather than wrong digits.
An expression can be up to 1,000 characters long, and a pasted one up to 256. Your calculations, memory and History are stored only in this browser.
Accuracy and test cases
This calculator is tested automatically before every release against 408 cases. Each expected value was worked out independently, with exact fractions and, for functions such as sin and ln, 60-digit series, so the checks do not simply repeat what the calculator says. Below is a selection; the button runs every case in your browser, on the calculator above.
| Calculation | Exact value | Calculator shows | 64-bit floating point | Your browser |
|---|---|---|---|---|
| Decimal fractions Binary floating point cannot store 0.1 exactly; this calculator keeps the exact decimal. | ||||
| 0.3 | 0.30000000000000004 | — | ||
| 3.3 | 3.3000000000000003 | — | ||
| 435 | 434.99999999999994 | — | ||
| 0 | 5.551115123125783×10−17 | — | ||
| 3 | 2.9999999999999996 | — | ||
| Division and repeating decimals 1 ÷ 3 is kept as the fraction 1/3, so multiplying back by 3 gives exactly 1. | ||||
| 1 | — | |||
| 3.33333333333×10−13 | 3.33288951992472×10−13 | — | ||
| Percent Adding or subtracting a percentage changes a number by that share of itself: 200 + 10% = 220. | ||||
| 220 | — | |||
| 21.639175 | — | |||
| Order of operations Powers first, from the right; then × and ÷; then + and −. | ||||
| 512 | — | |||
| −4 | — | |||
| Powers and large whole numbers Whole-number powers are exact; the screen shows 12 significant digits of them. | ||||
| 1.84467440737×1019 | 18446744073709552000 | — | ||
| 9.00719925474×1015 | 9007199254740992 | — | ||
| 1 | 0 | — | ||
| Factorials and combinations Exact up to 170!, and nCr and nPr for whole numbers up to 10,000. | ||||
| 2.43290200818×1018 | — | |||
| 1.18264581565×1017 | 118264581564861420 | — | ||
| Roots A root that comes out exact is exact (√2.25 = 1.5); the others are rounded to about 16 digits. | ||||
| 1.5 | — | |||
| 1.5 | — | |||
| Limits Beyond about 1.8×10³⁰⁸ a result is reported as too large. | ||||
| Result too large | — | |||
| Errors A calculation with no real result shows a message instead of a number. | ||||
| Cannot divide by zero | — | |||
| Memory and repeated = M+, M− and a repeated = keep the exact value. | ||||
| 0 | 5.551115123125783×10−17 | — | ||
| Trigonometry Degrees, radians and grads; table angles give exact values, such as sin 30° = 0.5. | ||||
| 0.5 | — | |||
| Not a real number | — | |||
| 0.5 | — | |||
| Logarithms and exponentials Rounded to about 16 digits; whole results such as log₂ 8 = 3 are exact. | ||||
| 3 | — | |||
| mod, abs and round Exact on exact numbers; the result of mod takes the sign of the divisor. | ||||
| 2 | — | |||
| Number formats SCI, ENG and FIX change only the display; FIX rounds the exact value once, half up. | ||||
| 12.345×103 | — | |||
| 2.68 | 2.67 | — | ||
Show all 408 test cases
How the expected values were made: exact fractions of whole numbers of any size; π by Machin’s formula; sin, cos, eˣ and ln by their power series to 60 digits; then rounded once, half up, to the 12 digits on the screen. The floating-point column is what a program that uses only 64-bit IEEE 754 numbers prints.
Related calculators
For tasks that need more than one expression, a dedicated calculator is faster:
Frequently asked questions
Why does sin(30) give −0.988 instead of 0.5?
The calculator is in radians. Select DEG above the keys and sin(30) gives 0.5. The selected unit is shown on the display next to the result.
How do I type a number like 6.02×10²³?
Type 6.02, press EXP, then type 23. EXP joins the power of ten to the number, so it behaves as one value inside larger expressions; on a keyboard, type 6.02E23.
What is the difference between log and ln?
log is the logarithm in base 10, so log(1000) = 3. ln is the natural logarithm in base e ≈ 2.718, so ln(e) = 1. Press 2nd on the same keys for the inverse functions, 10ˣ and eˣ.
How do I calculate combinations like 5C2?
Type 5, press nCr, then type 2: the result is 10. With 2nd the same key gives nPr, the number of ordered arrangements, so 5P2 is 20. Both work for whole numbers up to 10,000.
Can it show the answer as a fraction?
Yes, when the answer is an exact fraction. After pressing =, use the a/b button to switch between 3/4 and 0.75. Results involving π, roots or trigonometry stay decimal.
Does it work offline and on my phone?
Once the page has loaded, every calculation runs in your browser, so a weak connection does not slow it down. The layout adapts to phones, and keys are large enough to tap.
Why do Scientific and Engineering not change my answer?
They change how a number is written, not its value, and Auto already shows ordinary numbers in full. Choose Scientific with a result like 56 and it becomes 5.6×10¹; Engineering shows 0.00056 as 560×10⁻⁶. SCI or ENG on the display confirms which format is on.
Can I change the colours or make the keys larger?
Yes. Open Appearance under the calculator to pick a case colour and switch on Large keys. Every scheme keeps the text easy to read, and your choice is saved in this browser.
How do I calculate sinh, a logarithm to base 2 or to any base?
Press HYP and then sin, cos or tan for sinh, cosh or tanh; add 2nd for the inverse functions. For a logarithm to base y, type y, press logᵧx and type x: 2 logᵧx 8 = 3, shown as log₂ 8. Press 2nd and the same key for log₂ directly.