Scientific Calculator
A free scientific calculator that works out what you type as you type it, exactly: trigonometry, logarithms, fractions, complex numbers, variables, graphs, statistics, binary and hex, and the working of every answer.
- Free, no sign-up
- Runs in your browser
- Sources cited
Answer:
Type or tap. Brackets left open are closed for you, and the answer updates as you type.
Everything is worked out in your browser. Nothing is sent anywhere.
- Normal
- Scientific
- Engineering
- Fixed decimals
- a + bi
- r ∠ θ
- Decimal only
- Hexadecimal
- Octal
- Binary
History
Answers you keep with = appear here, on this device.
How to use the scientific calculator
Type or tap the expression
Type straight into the line at the top, or use the keys. You can write it the way you would on paper: 2(3 + 4), 5², √16, sin 30, 1.5E3. The answer appears as you type, so there is no need to press = to see it.
Choose the angle unit
DEG, RAD or GRAD sets the unit for sine, cosine and tangent, and the unit their inverses answer in. Add ° to a number to give it in degrees whatever the setting.
Use 2nd for more functions
The 2nd key turns sine into inverse sine, x² into x³, xʸ into a root of any degree, ln into eˣ, log into 10ˣ, n! into combinations, % into the remainder, and more. It turns back off after one key.
Keep answers
Press = or Enter to keep the answer in the history and carry on from it. Ans is the last answer kept, and M+, M−, MR and MC work a memory. Click any answer to see how it was worked out.
Set the display
Under Settings, choose normal, scientific, engineering or fixed-decimal notation, how many digits to show, whether to show exact fractions, real or complex numbers, and a base for whole answers.
Open the other tools
The tabs under the keypad open a graph, statistics for a list of numbers, a programmer view with bitwise operations, your variables and functions, and the constants. They load only when you open them.
How the scientific calculator works
Most calculators on the web store numbers in binary floating point, which cannot hold 0.1 exactly, so 0.1 + 0.2 comes out as 0.30000000000000004. This calculator works in decimal, to 50 significant digits, and shows up to 30. Alongside every decimal it keeps the exact fraction whenever the arithmetic allows: adding, subtracting, multiplying and dividing fractions, whole powers, percentages and roots of perfect powers all stay exact, so a third stays a third.
The expression is read in the usual order of operations: brackets first, then powers, then multiplication and division, then addition and subtraction, each from left to right except powers, which group from the right, so 2^3^2 is 2^9. A minus sign in front binds less tightly than a power, as in algebra, so −2² is −4. Two things written side by side are multiplied, so 2π and 3(4 + 1) mean what they look like. Brackets left open at the end are closed for you, and the calculator says so.
Trigonometry follows the angle setting. A full turn is 360 degrees, 2π radians or 400 gradians, and angles are converted on that basis before the sine, cosine or tangent is worked out. At whole quarter turns the answers are exact: the sine of 180 degrees is 0, not a tiny leftover, and the tangent of 90 degrees has no value, so the calculator says that rather than showing a huge number.
Logarithms are natural (ln, base e), common (log, base 10, or any base given as a second value, as in log(8, 2)) and base 2. Roots of negative numbers are worked out where they are real: the cube root of −8 is −2, while the square root of −1 is refused, because this calculator works with real numbers only. Factorials are worked out exactly for whole numbers up to 3,000, and so are permutations (nPr) and combinations (nCr).
The physical constants are the values NIST lists as exact in the 2022 CODATA set: the speed of light (299,792,458 m/s), the Planck constant, the elementary charge, the Boltzmann constant, the Avogadro constant and the standard acceleration of gravity (9.80665 m/s²). Constants that are measured rather than defined are left out, so nothing rounded is passed off as exact.
Names are your own. Write x = 5 and x is 5 in what follows; write f(x) = x^2 + 1 and f(3) works. Several statements can be joined with a semicolon, and the value of the last is the answer. Press = to keep a definition for the expressions after it, and the Variables tab lists what is kept, which you can remove. A function can call another function you defined, but not itself without end: a function that keeps calling itself is stopped. Names of functions, constants and Ans cannot be redefined.
Complex mode, under Settings, allows the imaginary unit i (or j). Parts are exact decimals, so (1 + i)(1 − i) is exactly 2 and √−4 is exactly 2i. Anything real is worked out by the real rules, and only what has no real answer, such as √−4 or ln(−1), goes on to the complex ones. Powers use the principal value, and the trigonometric functions of a complex number take radians. abs, arg, re, im, conj and polar(r, θ) are available, and answers show as a + bi and as r ∠ θ in the angle unit. Lists, bitwise operations and factorials of complex numbers are not available.
Numbers can be written in other bases: 0xFF is hexadecimal, 0b1010 binary and 0o17 octal. The operators & and | and the functions xor, not, shl and shr work on whole numbers in the word size chosen, 8, 16, 32 or 64 bits, wrapping in two’s complement, so not(0) is −1 and the same pattern is 0xFFFFFFFFFFFFFFFF unsigned. The & operator binds more tightly than |, and both bind more loosely than addition. A whole answer can also be shown in another base, and the Programmer tab shows it in all four with its signed and unsigned values.
List functions take values separated by commas: sum, count, mean, median, mode, min, max, range, variance, stdev, varp, stdevp, geomean, q1, q3, iqr and sumsq. Variance and standard deviation divide by n − 1 for a sample, and varp and stdevp divide by n for a whole population. Quartiles are interpolated between the closest ranks, the inclusive method that spreadsheets use. The mode is the smallest of the most common values, and a list in which no value repeats has none. The Statistics tab takes a pasted list, shows every measure, and fits a least-squares line through a second list of the same length, with its correlation.
The Graph tab draws up to six curves written as expressions in x, with the angle unit you chose. Drag to move, scroll or use the buttons to zoom, and hover to read values. Roots, turning points, the value where x is 0, and where two curves meet are found numerically in the window shown, and a root can be tapped to use it in the calculator. Graphs use ordinary floating-point numbers for speed, so they are for seeing and finding values, and the exact answer to any one of them is a calculation away.
Everything is worked out in your browser. The expression is part of the page’s link, so a calculation can be shared, and the history is kept on your device only.
Worked example: the steps behind an answer
Type sin(30) + 2^10 ÷ 8. The calculator shows 128.5, and clicking the answer shows the 4 steps it took, in the order they were done.
- The sine, in degrees: sin(30) = 0.5.
- The power, before any division: 2^10 = 1024.
- Then the division: 1024 ÷ 8 = 128.
- Last, the addition: 0.5 + 128 = 128.5.
Exactness shows in small things. 0.1 + 0.2 gives 0.3, not a long tail of digits. 1 ÷ 3 + 1 ÷ 6 gives a decimal and the exact fraction 1/2, and 22 ÷ 7 shows the mixed number 3 1/7. A whole power can be large and still exact: two to the sixty-fourth, shown with enough digits, is 18446744073709551616.
Names keep their values: x = 5; 2x + 1 gives 11, and f(x) = x^2 + 1; f(3) gives 10. Statistics of the list 2, 4, 4, 4, 5, 5, 7, 9: the mean is 5, the middle value 4.5, the population standard deviation 2 and the sample standard deviation 2.1380899353, which is larger because it divides by one less.
Complex mode works exactly: sqrt(-4) is 2i, and (1 + 2i)(3 − i) is 5 + 5i. The number 3 + 4i has distance 5 from zero, so its polar form is 5 ∠ 53.1301023542°. With the word size set to eight bits, 255 is 0xFF in hexadecimal, and not(5) is -6.
On the graph of x^2 − 4, the roots are at x = −2 and x = 2. The curve x^3 − 3x has a maximum at (−1, 2) and a minimum at (1, −2).
The order of operations matters. -2^2 is -4, because the power is worked out before the sign, while (-2)^2 is 4. And the angle unit matters: the sine of ninety is 1 in degrees but 0.893996663601 in radians.
Understanding the results, and common mistakes
- Scientific notation
- A number written as a value from 1 to 10 times a power of ten, such as 6.02 × 10²³. The calculator uses it for very large and very small answers, or always if you choose it.
- Engineering notation
- Like scientific notation, but the power of ten is always a multiple of three, which matches prefixes such as kilo, mega and micro.
- Exact fraction
- Shown under the answer when the result is a fraction the calculator could keep exactly. Irrational results, such as √2 or π, have none.
- ≈ in the working
- The figure shown is rounded for display. The calculation behind it is not.
- Using the wrong angle unit. sin(90) is 1 in degrees and about 0.894 in radians; check DEG or RAD before trusting a trigonometry answer.
- Forgetting brackets around a negative base. −2² is −4; write (−2)² for 4.
- Reading % as “percent of”. Here x% is x divided by 100, so 200 × 15% is 30; 200 + 15% is 200.15, not 230.
- Dividing by a sum without brackets. 1 / 2 + 3 is 3.5; write 1 / (2 + 3) for 0.2.
- Expecting imaginary answers in real mode. The square root of a negative number is refused there; switch to complex mode under Settings for √−4 = 2i.
- Mixing up sample and population. stdev divides by n − 1 and stdevp by n, so they differ most for short lists.
- Forgetting the word size. Bitwise results wrap to the size chosen: shl(1, 7) is −128 in eight bits and 128 in sixteen.
Frequently asked questions
Is this calculator more accurate than my phone’s?
It works in decimal to 50 significant digits, so sums like 0.1 + 0.2 come out exactly, and it keeps exact fractions. Many calculators use binary floating point, which is accurate to about 15 to 17 digits and cannot store most decimals exactly.
How do I enter scientific notation?
Use the EXP key or type E: 1.5E3 is 1,500 and 6.02E23 is 6.02 × 10²³.
What does Ans do?
Ans is the last answer you kept with = or Enter. After =, starting with an operator carries on from the answer, and starting with a number begins a new calculation.
Can I see how an answer was worked out?
Yes. Click the answer, or any answer in the history, and every step appears in order, with its numbers.
Does it do complex numbers, graphs and statistics?
Yes. Switch to complex mode under Settings for i, and open the Graph, Statistics and Programmer tabs under the keypad. Variables and your own functions work in every mode.
Are the graphs exact?
Graphs and the roots and turning points on them are found with ordinary numbers for speed, so they are accurate for reading values and finding where to look. For an exact answer, type the value into the calculator.
Is my history saved?
The history, and the variables and functions you keep with =, are kept in this browser only, so they are there when you come back on the same device. Clear history and the Variables tab remove them.
Does it work with the keyboard?
Yes. Type into the line directly, press Enter to keep the answer and Escape to clear. Symbols such as × ÷ √ π and ² work, as do *, /, ^ and the names sqrt, pi, sin and so on.
Sources
- CODATA Value: speed of light in vacuumNIST (2022 CODATA) · retrieved Nov 19, 2026
- CODATA Value: Planck constantNIST (2022 CODATA) · retrieved Nov 19, 2026
- CODATA Value: elementary chargeNIST (2022 CODATA) · retrieved Nov 19, 2026
- CODATA Value: Boltzmann constantNIST (2022 CODATA) · retrieved Nov 19, 2026
- CODATA Value: Avogadro constantNIST (2022 CODATA) · retrieved Nov 19, 2026
- CODATA Value: standard acceleration of gravityNIST (2022 CODATA) · retrieved Nov 19, 2026
About these results
- Everything is worked out in your browser. The history is kept on this device only.
- Real mode refuses the square root of a negative number. Complex mode gives the principal value, and the trigonometric functions of a complex number take radians.
- Graphs use ordinary floating-point numbers, so they are for seeing and finding values; the calculator itself works to 50 digits.