This account already has saved data. Do you want to keep this device's data, or use your account's saved data?
Appearance
Unit System
Temperature Format
Time Format
Logarithm
Result
Also Expressed As
Result
Also Expressed As
Your Recent & Past Results
Restored a past calculation.
Compare Calculations
Side-by-Side Comparison
A comparison of your calculations' results.
Downloads
Includes your inputs and results for this calculation, plus any additional calculations you've compared.
Share & Print
The link includes your inputs and results, so anyone who opens it sees this exact calculation.
Finding What Power Produces a Given Number
A logarithm answers the question “what power do I need to raise the base to, to get this number?” Enter a value and a base, and this calculator finds the logarithm, along with the same value in log base 10, natural log (ln), and base 2.
The Formula
logb(x)=ln(b)ln(x)
where x is the value and b is the base — this is the change-of-base formula, since most calculators only have built-in functions for the natural (ln) logarithm.
Worked Example
Log base 2 of 8:
log2(8)=ln(2)ln(8)=0.6932.079≈3 — since 23=8.
Key Factors to Consider
Logarithms are only defined for positive numbers (and any positive base other than 1). A
logarithm of zero or a negative number has no real-number answer — this reflects the fact that
a positive base raised to any real power always produces a positive result, so there’s no real
exponent that could ever produce zero or a negative number.
Logarithmic scales are widely used for quantities that span an enormous range. The Richter
scale for earthquake magnitude, the decibel scale for sound, and the pH scale for acidity are
all logarithmic — each whole-number step represents a tenfold (or similarly large) change in
the underlying quantity, which is why a “small” difference in these scales can represent a huge
real-world difference.
Base 10, base e (natural log), and base 2 each show up in different fields for different
reasons. Base 10 lines up naturally with the decimal number system and everyday scales; base
e arises naturally in calculus and continuous growth/decay (like continuous compound interest);
base 2 is fundamental in computer science, where quantities often double (like data storage or
binary search steps).
The key logarithm identities let you break complex expressions into simpler pieces.
log(a×b) = log(a) + log(b), and log(aⁿ) = n×log(a) — these rules are why logarithms were
historically used to turn difficult multiplication and exponentiation problems into simpler
addition, long before calculators existed.
Common Mistakes
Trying to take the logarithm of zero or a negative number. No real exponent applied to a
positive base can ever produce zero or a negative result, so these inputs have no real-number
answer — this calculator will flag them as invalid rather than return a value.
Confusing “log” with “ln” when reading a formula or textbook. Plain “log” conventionally
means base 10 in everyday and engineering contexts, but many math and computer-science texts use
it to mean the natural log (base e) instead — always check which convention a source is using
rather than assuming.
Forgetting that a logarithm’s base must be positive and not equal to 1. A base of 1 would
make every power of it equal to 1, so there’s no way to solve for an exponent that produces any
other value — and a negative base produces alternating positive/negative results that break the
real-number logarithm entirely.
Misreading a logarithmic scale as if it were linear. A difference of 2 points on the Richter
scale isn’t twice as strong — it’s about 1,000 times more energy release, since each whole step
represents a tenfold change in amplitude (and roughly 31.6-fold change in energy).
Useful to Know
Need the reverse operation — raising a base to a power instead of finding the exponent?
Exponent Calculator handles that direction.
Working with a logarithmic decay process, like radioactive half-life? Half-Life / Radioactive Decay Calculator
applies the same natural-log math to a decay-specific worked example.
Need a fuller scientific calculator with logarithms alongside trig and other functions?
Scientific Calculator covers the broader toolkit.
Encontrar la Potencia que Produce un Número Dado
Un logaritmo responde a la pregunta “¿a qué potencia debo elevar la base para obtener este número?” Introduce un valor y una base, y esta calculadora encuentra el logaritmo, junto con el mismo valor en log base 10, logaritmo natural (ln) y base 2.
La fórmula
logb(x)=ln(b)ln(x)
donde x es el valor y b es la base — esta es la fórmula de cambio de base, ya que la mayoría de las calculadoras solo tienen funciones integradas para el logaritmo natural (ln).
Ejemplo resuelto
Logaritmo en base 2 de 8:
log2(8)=ln(2)ln(8)=0.6932.079≈3 — ya que 23=8.
Factores Clave a Considerar
Los logaritmos solo están definidos para números positivos (y cualquier base positiva distinta
de 1). El logaritmo de cero o de un número negativo no tiene una respuesta en números reales —
esto refleja el hecho de que una base positiva elevada a cualquier potencia real siempre produce
un resultado positivo, así que no existe un exponente real que pudiera producir jamás cero o un
número negativo.
Las escalas logarítmicas se usan ampliamente para cantidades que abarcan un rango enorme. La
escala de Richter para la magnitud de terremotos, la escala de decibelios para el sonido, y la
escala de pH para la acidez son todas logarítmicas — cada paso de número entero representa un
cambio de diez veces (o similarmente grande) en la cantidad subyacente, por lo que una “pequeña”
diferencia en estas escalas puede representar una enorme diferencia en el mundo real.
La base 10, la base e (logaritmo natural) y la base 2 aparecen cada una en distintos campos por
distintas razones. La base 10 se alinea naturalmente con el sistema decimal y las escalas
cotidianas; la base e surge naturalmente en el cálculo y el crecimiento/decaimiento continuo (como
el interés compuesto continuo); la base 2 es fundamental en la informática, donde las cantidades a
menudo se duplican (como el almacenamiento de datos o los pasos de búsqueda binaria).
Las identidades logarítmicas clave permiten descomponer expresiones complejas en piezas más
simples. log(a×b) = log(a) + log(b), y log(aⁿ) = n×log(a) — estas reglas son la razón por la
que los logaritmos se usaban históricamente para convertir problemas difíciles de multiplicación y
exponenciación en sumas más simples, mucho antes de que existieran las calculadoras.
Errores Comunes
Intentar calcular el logaritmo de cero o de un número negativo. Ningún exponente real
aplicado a una base positiva puede producir jamás cero o un resultado negativo, así que estas
entradas no tienen una respuesta en números reales — esta calculadora las marcará como
inválidas en lugar de devolver un valor.
Confundir “log” con “ln” al leer una fórmula o un libro de texto. El “log” simple
convencionalmente significa base 10 en contextos cotidianos y de ingeniería, pero muchos textos
de matemáticas y ciencias de la computación lo usan para referirse al logaritmo natural (base e)
en su lugar — siempre verifica qué convención usa una fuente en lugar de asumirlo.
Olvidar que la base de un logaritmo debe ser positiva y distinta de 1. Una base de 1 haría
que cualquier potencia de ella fuera igual a 1, por lo que no hay forma de resolver un exponente
que produzca cualquier otro valor — y una base negativa produce resultados
positivos/negativos alternados que rompen por completo el logaritmo de números reales.
Interpretar una escala logarítmica como si fuera lineal. Una diferencia de 2 puntos en la
escala de Richter no es el doble de fuerte — es cerca de 1,000 veces más liberación de energía,
ya que cada paso de número entero representa un cambio de diez veces en la amplitud (y
aproximadamente 31.6 veces en energía).
Útil Saber
¿Necesitas la operación inversa — elevar una base a una potencia en lugar de encontrar el
exponente? La Calculadora de Exponentes maneja esa dirección.
¿Trabajas con un proceso de decaimiento logarítmico, como la vida media radiactiva? La
Calculadora de Vida Media aplica las mismas matemáticas de logaritmo natural a un
ejemplo resuelto específico de decaimiento.
¿Necesitas una calculadora científica más completa con logaritmos junto con trigonometría y
otras funciones? La Calculadora Científica cubre el conjunto de herramientas más amplio.
A logarithm answers the question "what power do I need to raise the base to, to get this number?" For example, log base 2 of 8 is 3, because 2 raised to the 3rd power equals 8. Logarithms are the inverse operation of exponentiation.
How do you calculate a logarithm in any base?
Using the change-of-base formula: log_b(x) = ln(x) ÷ ln(b), where ln is the natural logarithm. Most calculators (including this one) only have built-in functions for a couple of specific bases, so this formula lets you find a logarithm in ANY base from those.
What is the difference between log and ln?
"log" (without a written base) conventionally means base-10 (the "common" logarithm), while "ln" specifically means the natural logarithm, base e (approximately 2.71828). This calculator shows both, along with log base 2, regardless of which base you actually requested.
Why can't you take the logarithm of a negative number?
Because a positive base raised to any real-number power always produces a positive result — there's no real exponent that could make a positive base produce zero or a negative number. Logarithms of negative numbers do exist in the complex-number system, but that's outside what this calculator computes.
What are some real-world uses of logarithms?
Logarithmic scales are used anywhere a quantity spans an enormous range, like earthquake magnitude (Richter scale), sound intensity (decibels), and acid/base strength (pH). Logarithms also show up in computer science (binary search, information theory) and in modeling continuous growth or decay, like radioactive decay or continuously compounded interest.
We use cookies for analytics and ads to help support this free site. You can accept all, or decline and we'll only use what's needed for the site to work.