Base-10 logarithm
- Input
- log(1000)
- Expected output
- 3
10³ = 1000, so the base-10 log of 1000 is exactly 3.
logarithm calculator
This page opens the scientific calculator with a logarithm calculation already loaded. Besides `ln(x)` (natural) and `log(x)` (base 10), you can compute a logarithm in any base by writing `log(x, base)`, for example `log(8, 2)` for the log of 8 in base 2.
10³ = 1000, so the base-10 log of 1000 is exactly 3.
2³ = 8, so the log of 8 in base 2 is 3, useful for counting how many bits represent a value.
Yes. Writing `2sin(pi/4)` works exactly like `2*sin(pi/4)`, and the same applies to cases like `2(3+4)` or `xy`. You never need to type the multiplication sign between a number and a directly adjacent variable, function, or parenthesis.
`ln(x)` is always the natural logarithm (base e); `log(x)` with one argument is the base-10 logarithm. For other bases, use `log(x, base)` with two arguments, or `log2(x)` for base 2 directly.
The calculator refuses the calculation with a message explaining that the function requires a positive number, instead of silently returning "NaN".
No variables defined yet. Type something like "x = 5" and calculate to create one.
No calculation yet
Need to convert an arbitrary number between bases without calculating anything first? Use the catalog's base converter.
Result: 0 (0)
Bitwise operations work on signed 32-bit integers (from -2147483648 to 2147483647), the same semantics used by JavaScript's own bitwise operators.
No calculations on the tape yet. Every calculation you make shows up here, clickable to reuse.
All calculation happens in your browser, no expression or result is ever sent to a server. The history tape is saved locally (localStorage) on this device only; named variables exist only for the current session.