Online Scientific Calculator
Expressions with functions, constants and brackets. Free, and runs entirely in your browser — nothing you enter is uploaded, stored or sent to a server.
About Scientific Calculator
An expression calculator: type the sum the way you would write it, brackets and functions included, and it works out the answer. Several lines are evaluated in turn, so a piece of working can be kept together rather than retyped.
It parses the expression rather than evaluating it as code. That distinction is the whole security story: the usual way to build this in a browser is to hand the text to eval, which gives whatever was typed — or pasted from a chat — the page's own privileges. Here, anything that is not a number, an operator, a bracket, a known function or a known constant is an error.
Trigonometry works in degrees or radians, chosen with a switch, because getting that wrong is the classic wrong answer. Beyond the arithmetic operators there are roots, logarithms, hyperbolic functions, factorials with !, and the constants pi, e, tau and phi.
The answer is shown rounded to a precision you choose, and — for whole numbers — in hex and binary as well, which saves a trip to another tool.
Where it helps
- Parses rather than evaluates: nothing typed or pasted can run as code.
- Degrees or radians, chosen explicitly, so trigonometry cannot silently mean the wrong thing.
- Several lines at once, with each answer shown next to its expression.
- Gives whole-number answers in hex and binary as well as decimal.
- Runs locally, like every calculator here.
Limits
- Double precision, so about 15 significant digits — big factorials and long chains lose accuracy at the end.
- No variables, no memory and no previous-answer reference: each line stands alone.
- No complex numbers, so the square root of a negative number is an error rather than an imaginary result.
- It is a calculator, not a computer algebra system: it will not simplify or solve symbolically.
Frequently asked questions
Why not just use eval?
Because eval runs whatever it is given with the page's privileges, and expressions get pasted from all sorts of places. A parser can only ever produce a number or an error.
Are the trigonometric functions in degrees?
Whichever you choose — the switch is next to the expression, and the result says which mode it used, because sin(45) means two very different things.
What functions does it know?
Roots, powers, logarithms in three bases, all six trigonometric functions and their inverses, hyperbolics, rounding, min, max, hypot and factorial. The result lists the constants too.
Can I use previous answers?
Not as a reference, but each line is evaluated and shown, so working can be laid out step by step and read down the output.
Related tools
- Percentage Calculator — Percentages, differences and percentage change
- Storage Units — Convert between decimal and binary data units
- Aspect Ratio — Ratios and proportional resize targets
- BMI Calculator — Body mass index, its band and the healthy range
- Temperature Converter — Convert between Celsius, Fahrenheit, Kelvin and Rankine
- Length Converter — Convert between metric and imperial lengths, from millimetres to miles
More Calculators tools
- Percentage Calculator — Percentages, differences and percentage change
- Storage Units — Convert between decimal and binary data units
- Temperature Converter — Convert between Celsius, Fahrenheit, Kelvin and Rankine
- Length Converter — Convert between metric and imperial lengths, from millimetres to miles
- Area Converter — Convert between square metres, square feet, acres, hectares and more
- Volume Converter — Convert between litres, gallons, cups, fluid ounces and more, US and UK
- Weight Converter — Convert between metric and imperial weights, from milligrams to tons
- Speed Converter — Convert between km/h, mph, m/s, ft/s and knots, with running pace
- Bandwidth Calculator — Transfer times and data volumes for a link speed
- Unix Permissions Calculator — Convert between 755 and rwxr-xr-x, and say what each bit allows
- Subnet Calculator — IPv4 and IPv6 networks, masks, splits, VLSM plans and summarisation
- Aspect Ratio — Ratios and proportional resize targets
- Age Calculator — Age in years, months and days, and the next birthday
- BMI Calculator — Body mass index, its band and the healthy range
- GST Calculator — Add or remove GST, split into CGST, SGST and IGST
- VAT Calculator — Add or take off VAT at any rate
- Discount Calculator — What you pay after one discount or several
- Profit Calculator — Gross and net profit, margins and break-even
- Margin Calculator — Margin, markup, cost or price — give any two
- ROI Calculator — Return on investment, and what it is a year
- Mortgage Calculator — Monthly payment, loan to value and the true monthly cost
- Tip Calculator — Tip, total and the split between everyone
- Loan Calculator — Payments, total interest, overpayments and a full amortisation schedule