Online calculator
Switch between a standard and a scientific calculator, with brackets, trig, logs, factorials and history
Click the keys or type an expression, then press = or Enter; switch to Scientific for trig, logs and factorials.
Keyboard: digits and + - * / ^ ( ) % ! type directly; Enter or = calculates, Esc clears, Backspace deletes. You can also click the expression line and edit it like text.
Example
Input
2×(3+4)²−√81
Example result
89
Brackets first, 3+4 = 7; squared, 49; times 2, 98; minus √81 = 9 gives 89. More examples: 200+10% = 220, sin(30) in degrees is 0.5, and 10! = 3628800.
Technical details & limits
Expressions are tokenised and parsed by a recursive-descent parser into a syntax tree. Precedence from lowest to highest: addition and subtraction; multiplication, division and modulo (including implicit multiplication such as 2π or 3(4+5)); unary signs; powers (right-associative, so 2^3^2 = 512); postfix factorial and percent; functions and brackets. So -2^2 = -4. Missing closing brackets at the end are added automatically. Numbers are IEEE 754 double-precision floats, and results are shown to 15 significant digits, which removes binary artefacts such as 0.1+0.2; very large or small values use scientific notation such as 1.5E+21. In degree mode, trigonometric functions of whole multiples of 90° return exact values, so sin(180) shows 0 rather than 1.2E-16. Modulo uses floored division, so the result takes the sign of the divisor: -7 mod 3 = 2.
About this tool
A standard calculator and a scientific calculator on one page, switched with a single tab; the current expression and result stay put when you switch. Standard mode covers addition, subtraction, multiplication, division, percent, square, square root, brackets and the four memory keys (MC, MR, M+, M−), which is enough for shopping, bookkeeping and discounts. Scientific mode adds sine, cosine and tangent with their inverses, hyperbolic functions, natural and common logarithms, powers, cube roots, factorials, modulo, π and e, with a choice of degrees or radians. Type a whole expression and it is evaluated by normal operator precedence, with a live preview while you type. Finished calculations go into a history list you can click to reuse. Keyboard input is supported, and everything runs locally in your browser.
Use cases
- Add up a shopping list, split a bill or work out a discount with the percent key.
- Check homework with sine, cosine, logarithms, powers and roots, in degrees or radians.
- Type a whole expression with brackets and get the answer by normal operator precedence, without noting down intermediate results.
- Keep intermediate values in memory and history while checking multi-step figures in a report or budget.
How to use
- Choose Standard or Scientific at the top; for trigonometry, pick degrees or radians above the scientific keys.
- Click the keys or type on your keyboard. You can enter a whole expression with brackets, and the result previews live below it.
- Press = or Enter for the result. Pressing an operator next continues from that result; pressing a digit starts a new expression.
- Use M+, M− and MR to hold intermediate values. In the history panel, click an expression to edit it or a result to reuse it.
Input & output
- Input
- An expression of up to 300 characters, using digits, + − × ÷ ^ % ! mod, brackets, π, e, Ans and functions such as sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, ln, log, √, ∛ and abs. Write scientific notation as 1.5E3.
- Output
- The result to 15 significant digits, with a digit-grouped version for values of 10,000 or more; very large or small values use scientific notation.
- Limits
- No symbolic algebra, equation solving, complex numbers or base conversion. Factorials accept whole numbers from 0 to 170, and results beyond about 1.8E+308 overflow.
Notes
Percent rule: when a percentage directly follows + or −, it is taken of the number on the left, so 200+10% = 220 and 200−10% = 180; anywhere else % just divides by 100, so 200×10% = 20. Trigonometric results depend on the angle unit: sin(30) is 0.5 in degrees but about −0.988 in radians, so check the DEG or RAD badge in the corner of the display. Floating-point arithmetic has limited precision; for reconciling money, taxes or anything that must be exact to the cent, rely on your accounting system or a dedicated tool. The mode, angle unit, memory and history are kept only in this browser’s local storage and are removed if you clear the site’s data.
FAQ
- Why does sin(30) give -0.988 instead of 0.5 on the scientific calculator?
- The answer depends on the angle unit. In degree mode (DEG), sin(30) equals 0.5, because 30 is read as 30 degrees. In radian mode (RAD), the same 30 is treated as 30 radians, roughly 1719 degrees, and the sine is about -0.988. Switch the unit above the scientific keys before calculating; the DEG or RAD badge in the corner of the display always shows which unit is active. Inverse functions such as asin follow the same setting, so asin(0.5) returns 30 in degrees and about 0.5236 in radians.
- Why does 200+10% equal 220 on this calculator?
- When a percentage directly follows a plus or minus sign, it is taken as a share of the number on its left. So 200+10% means 200 plus 10% of 200, which is 220, and 200-10% gives 180. Anywhere else the percent sign simply divides by 100: 200×10% is 20, and 50% on its own is 0.5. This matches how most handheld calculators treat discounts and markups, so you can type a price and a percentage directly instead of converting it to a multiplier first.
- Will 0.1+0.2 show 0.30000000000000004?
- No. Numbers are stored as double-precision floating point, which is reliable to about 15 significant digits, and every result is rounded to 15 significant digits before it is displayed. That removes the tiny binary artefact, so 0.1+0.2 shows 0.3 and 1.1×3 shows 3.3. The trade-off is that digits beyond the 15th are not available. For work that needs dozens of exact decimal places, or financial reconciliation that must be exact to the cent, use an arbitrary-precision tool or your accounting system.
- What is the largest factorial the scientific calculator can compute?
- Factorials accept whole numbers from 0 to 170. The value of 170! is about 7.26E+306, close to the double-precision ceiling of roughly 1.8E+308, and 171! would overflow, so the calculator shows a clear message instead of returning infinity. Results above about 21! are shown in scientific notation and keep 15 significant digits, so the last digits of very large factorials are rounded. Factorials of fractions or negative numbers, which would need the gamma function, are not supported and also produce a message.
- Does -2^2 equal 4 or -4 on this calculator?
- It equals -4. Following standard mathematical convention, the power is applied before the minus sign, so -2^2 means -(2^2). Write (-2)^2 if you want 4. Powers also group from right to left, so 2^3^2 is 2^9, which is 512, not 8^2. Implicit multiplication such as 2π or 3(4+5) is supported and binds like ordinary multiplication, and any closing brackets missing at the end of the expression are added automatically before the result is calculated.
Related tools