All tools · 📊 Math

log Logarithm Calculator

Compute the logarithm of x in any base. Common presets: log₁₀ (common log), ln (natural log, base e), log₂ (binary). Useful for solving exponential equations, dB calculations, and information theory.

Loading tool…

Examples

Common log
Inputlog₁₀(1000)
Output3
Natural log
Inputln(e)
Output1
Binary
Inputlog₂(1024)
Output10
Custom base
Inputlog₃(81)
Output4

Frequently asked questions

What is "ln" and how is it different from "log"?

ln is natural log (base e ≈ 2.71828). Plain "log" usually means base 10 in engineering, base e in pure math, or base 2 in CS — context matters.

Why log(0) error?

log(0) is negative infinity (the function diverges). Logs of negative numbers are complex; we display the complex result with imaginary part π.

Change of base formula?

log_b(x) = ln(x) / ln(b). All calculators internally convert to one base.

About this tool

Logarithm Calculator runs entirely in your browser using standard Web APIs. No data is sent to any server. The source for this tool is in our public GitHub repository.

Related tools

← All 96 tools

Why this tool

vs typical free web-tool sites

1vwTypical free site
PriceFreeFree
Signup requiredNoOften (for premium features)
Ads inside the toolNoYes (banner + video)
Data sent to serverNo (browser-only)Yes (inputs analyzed for ads)
Total tools96Often <20 or scattered across sites
Bookmarkable URL per toolYesMixed
Loads in under 1sYes (static)Often slow (ad tracking)
MultilingualEN / ES / PT / FR / DEUsually EN only
Open sourceYesNo