Beginner

Logarithm Calculator — log₁₀, ln, log₂, Any Base

Find the logarithm of any positive number in common (base 10), natural (base e), binary (base 2), or any custom base — with a curve showing where your value sits.
Must be positive and non-zero

底数

Logarithm
2

Result for the selected base

log₁₀(x)
2
ln(x)
4.60517
log₂(x)
6.643856
10 ^ result
100
(100, 2)
Step by step
  1. 1

    Argument x

    100
  2. 2

    log₁₀(x)

    log₁₀(100) = 2
结果仅为一般参考性的估算,并非专业建议——在依赖这些重要结果之前,请务必自行独立核实。 阅读完整免责声明.
快速解答

这个计算器是如何工作的?

log_b(x) = ln(x) / ln(b) answers "b to what power gives x?" Common (base 10) and natural (base e) logs are most widely used. Enter a positive number, pick a base, and the calculator shows common, natural, and binary results plus a log curve up to 1.6× your input for visual context.

公式
log_b(x) = ln(x) / ln(b) • log₁₀(x) = log(x)/log(10) • ln(x) uses base e ≈ 2.71828
How this is calculated

The logarithm log_b(x) answers the question "b raised to what power equals x?" For the common log (base 10), log₁₀(100) = 2 because 10² = 100. For the natural log, the base is Euler's number e ≈ 2.71828, and ln(x) appears constantly in calculus, growth models, and probability. For the binary log (base 2), log₂(8) = 3 because 2³ = 8 — this arises in computer science (bits, binary tree depth, information theory).

All logarithm values are computed from the natural logarithm using the change-of-base rule: log_b(x) = ln(x) / ln(b). For a custom base, enter any positive number except 1 — base 1 is excluded because 1 raised to any power equals 1, making the logarithm undefined. The stat panel always shows common, natural, and binary logs alongside the selected-base result so you can compare all three.

The input must be strictly positive; the logarithm of zero is negative infinity, and the logarithm of a negative number is not a real number (it is defined in the complex plane, but not on the real line). The plot shows the log curve up to about 1.6× your input, letting you see its characteristic shape — fast growth near zero, then gradually flattening — and exactly where your point lies.

常见问题

"log" commonly means log base 10 in engineering and science, but is taken as the natural log in pure mathematics. "ln" always means the natural log (base e ≈ 2.71828). This calculator labels them explicitly to remove ambiguity.

Use the change-of-base rule: log_b(x) = ln(x) / ln(b). For example, log₅(25) = ln(25) / ln(5) ≈ 3.219 / 1.609 = 2. Enter a custom base in the calculator to compute this automatically.

As x approaches zero from the right, log(x) approaches negative infinity — there is no finite exponent to which any valid base can be raised to reach exactly zero.

也称为

对数计算器
log计算器
自然对数计算器
ln计算器
以10为底的对数
换底公式计算器
log2计算器
对数怎么算

APA

TG we-Calculate Editorial Team. (2026). Logarithm Calculator — log₁₀, ln, log₂, Any Base [Online calculator]. TG we-Calculate. https://we-calculate.com/zh/calculator/log-calculator

Chicago

TG we-Calculate Editorial Team. "Logarithm Calculator — log₁₀, ln, log₂, Any Base." TG we-Calculate. 2026. https://we-calculate.com/zh/calculator/log-calculator.

IEEE

TG we-Calculate Editorial Team, "Logarithm Calculator — log₁₀, ln, log₂, Any Base," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/zh/calculator/log-calculator

BibTeX

@misc{wecalculate_log_calculator, title = {Logarithm Calculator — log₁₀, ln, log₂, Any Base}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/zh/calculator/log-calculator}}, year = {2026}, note = {TG we-Calculate} }

这个计算器对您有帮助吗?