Calculator

Basic and scientific math, instant results

Loadingโ€ฆ

Was this tool helpful?

About this tool

This calculator handles basic arithmetic, scientific functions, and programmer-mode radix and bitwise operations in one screen. It runs on a hand-written parser instead of eval or a server, so the result updates live as you type. Switch between basic, scientific, and programmer modes with the tabs.

How to use

  1. In basic mode, build an expression with digits and + - x / % ^ and parentheses. Writing 2(3+4) without a multiplication sign is read as multiplication automatically.
  2. You can type numbers and operators directly from a physical keyboard instead of tapping buttons, and plain ASCII symbols like * and / are recognized too.
  3. Scientific mode adds functions like sin, cos, tan, log, ln, sqrt, cbrt and the constants pi and e, plus a DEG/RAD toggle at the top for angle units.
  4. Programmer mode lets you pick the input radix (DEC/HEX/BIN/OCT); once you enter a value all four radixes show at once, and AND, OR, XOR, NOT, and shift operations are applied with buttons.
  5. Pressing = or the Enter key adds the result to your calculation history; clicking a history entry loads that expression again.
  6. Tap "Play with friends" to get an invite link โ€” the expression, mode, and angle unit (DEG/RAD) update live for whoever opens it. Calculation history stays local to each screen.

Frequently asked questions

Do I need to type the multiplication sign?
No. When a number, parenthesis, or function name immediately follows another term, like 2(3+4) or 3sin(30), it is read as multiplication, following scientific-calculator convention.
How do I switch the angle unit?
Use the DEG/RAD buttons at the top of scientific mode. In radian mode, enter the radian value directly, as in sin(1).
How are negative numbers shown in programmer mode?
Values are always stored as unsigned 64-bit numbers. Only the DEC view applies two's-complement rules to interpret the top bit as a sign; HEX, BIN, and OCT show the raw unsigned bit pattern.
Are the shift operators (<<, >>) arithmetic shifts?
No, they are logical shifts. When shifting right, the vacated bits are always filled with 0 regardless of sign.
Can I use this with friends?
Yes. Tap "Play with friends" to get an invite link โ€” whoever opens it joins the same room, and the expression, mode (basic/scientific/programmer), and angle unit (DEG/RAD) update live for everyone. Calculation history is not shared and stays on each screen.
Can I type on a physical keyboard instead of clicking?
Yes. With the input focused, type digits and symbols like + - * / directly. Enter does the same thing as pressing =, adding the result to your history. In programmer mode you can also type into the field, and Enter confirms whatever operation is pending.
Does 0.1 + 0.2 show ugly floating-point digits?
No. Results are rounded to 12 significant digits, which trims floating-point noise like 0.30000000000000004. Whole numbers display as-is, and very large or very small values (magnitude at or above 1e15, or below 1e-6) switch to exponential notation, such as 1.23e+20.
Where is my calculation history stored?
The last 20 entries are saved in your browser. If you are not signed in, it stays local to this browser only; if you are signed in, it is stored encrypted on your account so it follows you to other devices. Programmer-mode calculations are not added to this history.
What happens if I type an invalid expression?
If the expression cannot be evaluated โ€” a missing closing parenthesis, dividing by zero, and so on โ€” an error message appears where the result would be, and it clears as soon as you fix the expression.

Similar tools