Free tool · Instant
Scientific calculator
Type the whole expression — 2(3+4)^2 - sqrt(16) — and watch the answer as you go. Brackets, trigonometry, logs, factorials, and implicit multiplication like 2pi.
Calculator
0
How to use it
Type directly into the display — the keypad is there for a phone, not instead of a keyboard. Press Enter to keep a line on the tape.
sin cos tan · asin acos atan · sinh cosh tanh
ln log log2 · sqrt cbrt abs exp
round floor ceil sign · mod · ! · % · pi · e
It does not use eval, and that is the point
Almost every calculator on the web takes what you type and hands it to eval() or new Function(). Both execute arbitrary JavaScript. It works, it is three lines, and it means the box you type 2+2 into is a box that will run whatever else is put in it — on a page people paste things into from elsewhere.
This one reads the expression properly: it splits it into tokens, rearranges them into reverse Polish notation with the shunting-yard algorithm, and evaluates that over a fixed table of numeric operations. The set of things it can do is the set of things listed above, and nothing typed into it can add to that set. The site's Content Security Policy blocks eval outright as well, so an eval-based calculator would not even run here.
Things it gets right that catch people out
-3^2is -9, not 9. The minus applies to the result of the power. Write(-3)^2for 9.2^3^2is 512, not 64 — powers group right to left, so it is 2^(3^2).2(3+4)is 14. Implicit multiplication works, which is what you would write on paper and whatevalwould refuse.0.1 + 0.2shows 0.3. Binary floating point actually gives 0.30000000000000004; the display rounds to twelve significant figures, which hides the noise without hiding anything real.7 mod 3is 1, and50%on its own is 0.5.
Degrees or radians
It starts in radians, which is what every programming language and every calculus course uses. The RAD button switches to degrees if that is what your question is in — and it converts both ways, so asin(0.5) gives 30 in degree mode and 0.5236 in radians.
Questions
Can I type a whole expression?
Yes. Type something like 2(3+4)^2 - sqrt(16) straight into the display and the answer updates as you type. Brackets, implicit multiplication such as 2pi, and scientific notation such as 2.5e-3 all work.
Can I use my keyboard?
Yes — type straight into the display. The keypad exists for phones. Enter puts the current line on the tape above.
How do I switch between degrees and radians?
The RAD button above the keypad toggles it. It starts in radians, which is what every programming language and every maths course uses by default; press it once for degrees.
Why is -3^2 negative nine and not nine?
Because the minus sign applies to the result of the power, not to the 3. -3^2 means -(3^2) = -9. If you want the square of negative three, write (-3)^2, which gives 9. That is the convention in written maths and in scientific calculators; spreadsheets are the well-known exception, where =-3^2 gives 9.
Does this calculator use eval?
No, and that is deliberate. Most browser calculators pass what you type to eval or new Function, which executes arbitrary JavaScript. This one tokenises the expression, converts it to reverse Polish notation and evaluates it over a fixed table of numeric operators, so there is no path from a typed string to executed code. The site's Content Security Policy blocks eval outright in any case.
Is anything sent anywhere?
No. It runs in your browser, there is no history sent anywhere, and nothing is stored.
Why does it not have a graph?
Because doing graphing properly is a much bigger job than doing it badly, and a bad one helps nobody. If you would use it, say so and we will look at it.
More tools
- Percentage calculatorFive questions written as plain sentences — percentage of a number, percentage change, adding or taking off a percentage, and the reverse percentage people get wrong on invoices. Shows its working.
- Unit converterMarla, kanal, murabba, gaz and tola alongside the ordinary ones — with both marla conventions, because two are in daily use and they differ by 21%.
- GPA & CGPA calculatorSemester GPA and cumulative CGPA on whichever scale your university actually uses. The grade mapping is printed so you can check it against your transcript.
- Age calculatorExact age in years, months and days — worked out on the calendar rather than by dividing by 365 — with the Hijri date and the next birthday.
- Base64 & URL encoderBoth directions, with correct UTF-8 — a plain btoa throws on Arabic and emoji and quietly returns a different string for an accent. Both fixed here.
- BMI calculatorYour BMI on both the WHO international thresholds and the Asian cut-offs, where the risk starts lower — plus your healthy weight range in kg. Most calculators show only the first.
All free, all running entirely in your browser. Built by Maxverse Lab, a remote software studio. Every tool.