Calculadora de Logaritmos

Calcule log, ln e logaritmos em qualquer base — incluindo antilogaritmo

Logarithm Calculator

Calculate logarithms with any base

Logarithm Calculator

Calculate log base b of x

Formula
log_b(x) = ln(x) / ln(b)

What is a Logarithm Calculator?

A Logarithm Calculator is a math tool that computes logarithms, which answer the question: "What power do I raise a base to in order to get a number?" For example, if 10³ = 1000, then log₁₀(1000) = 3. The logarithm tells you the exponent (power) needed to turn 10 into 1000.

Logarithms are widely used in math and science because they help work with very large or very small numbers, convert multiplication into addition, and model real-world growth and decay. They appear in fields like chemistry (pH), finance (compound growth), engineering, computer science, and statistics.

This calculator computes all three major types of logarithms simultaneously:

Supported Logarithm Types

  • Common logarithm (base 10) -- log₁₀(x), often written as log(x)
  • Natural logarithm (base e) -- ln(x), where e ≈ 2.71828
  • Custom base logarithm -- log₂(x) -- enter any valid base b to compute log_b(x)

How to Use This Logarithm Calculator

  1. Enter the number (x) -- the value you want to take the logarithm of
  2. Enter the base (b) -- defaults to 10, but you can change it to any valid base (e.g., 2, e, 5)
  3. Click "Calculate" -- to compute the logarithm
  4. Review all three results -- the calculator shows log_b(x), ln(x), and log₁₀(x) simultaneously
  5. Use the result -- apply it in your equation, problem, or real-world calculation

Tips:

  • For real-number results, the input x must be greater than 0
  • The base b must be greater than 0 and b ≠ 1
  • If your result looks unexpected, double-check whether you need log (base 10) vs ln (base e)

Logarithm Formulas

Definition of a Logarithm

log_b(x) = y means bʸ = x

The logarithm returns the exponent y that makes bʸ equal to x

Common Logarithm

log₁₀(x)

Base 10, often written as log(x)

Natural Logarithm

ln(x)

Base e, where e ≈ 2.71828

Change of Base Formula

Compute any base using log base 10 or ln:

log_b(x) = ln(x) / ln(b) = log₁₀(x) / log₁₀(b)

Convert between any bases using this identity

Useful Logarithm Rules

Product Rule

log_b(xy) = log_b(x) + log_b(y)

Quotient Rule

log_b(x/y) = log_b(x) − log_b(y)

Power Rule

log_b(xᵏ) = k × log_b(x)

Log of 1 / Log of Base

log_b(1) = 0

log_b(b) = 1

Example Calculations

Example 1: Common Log (Base 10)

Compute: log₁₀(1000)

Reasoning: 10³ = 1000

Result: 3

Example 2: Natural Log (Base e)

Compute: ln(e²)

Reasoning: ln returns the exponent when the base is e

Result: 2

Example 3: Custom Base Log

Compute: log₂(32)

Reasoning: 2⁵ = 32

Result: 5

Example 4: Using the Change of Base Formula

Compute: log₅(125)

Direct reasoning: 5³ = 125, so log₅(125) = 3

Change of base: ln(125) / ln(5) = 4.8283 / 1.6094 = 3

Result: 3

Frequently Asked Questions

What's the difference between log and ln?

log(x) usually means base 10 (common log), while ln(x) means base e (natural log). They're both logarithms—just with different bases.

Why can't I take the logarithm of 0 or a negative number?

In real-number math, log values are only defined for x > 0. There is no real exponent that makes a positive base equal 0 or a negative number.

What base values are allowed?

The base must be greater than 0 and not equal to 1. A base of 1 would always equal 1 for any exponent, so it can't produce different outputs.

What does a logarithm output represent?

The output is the exponent. If log_b(x) = y, then bʸ = x. That's the core meaning of logarithms.

When are logarithms useful in real life?

Logs are used when quantities change multiplicatively or span wide ranges: pH in chemistry, earthquake magnitude scales, sound intensity (decibels), compound growth/interest, and many scientific models.

Embed This Logarithm Calculator on Your Website

Want to add this logarithm calculator to your website? Get a custom embed code that matches your site's design and keeps visitors engaged.

Responsive design
Custom styling
Fast loading
Mobile optimized

O que é um logaritmo?

Um logaritmo responde à pergunta: a que potência devemos elevar a base para obter este número? Por exemplo, log₁₀(1000) = 3 porque 10³ = 1000. Os logaritmos transformam multiplicações em adições, tornando cálculos enormes muito mais simples. Eles aparecem em ciência, engenharia, música e ciência da computação — em qualquer lugar onde precisamos trabalhar com números de magnitudes muito diferentes.

Os dois logaritmos mais comuns são o log base 10 (escrito simplesmente "log") e o logaritmo natural (base e ≈ 2,71828, escrito "ln"). Esta calculadora aceita qualquer base — inclusive log₂, essencial na computação para contar bits e medir informação. Você também pode calcular antilogaritmos, que invertem o processo.

Como usar a calculadora de logaritmos

  1. Digite o número do qual você quer calcular o logaritmo (deve ser um número positivo maior que zero).
  2. Selecione a base: 10 para logaritmo comum, e para logaritmo natural (ln), 2 para logaritmo binário, ou informe uma base personalizada.
  3. Clique em Calcular para ver o resultado na hora.
  4. Para antilogaritmo: informe o valor do expoente, selecione a mesma base e a calculadora retorna o número original (b^y).

Fórmulas e identidades do logaritmo

Definição: log_b(x) = y significa b^y = x Logaritmo comum: log(x) = log_10(x) Logaritmo natural: ln(x) = log_e(x) Logaritmo binário: log_2(x) Mudança de base: log_b(x) = ln(x) / ln(b) Antilogaritmo: antilog_10(y) = 10^y Anti-ln: e^y Identidades principais: log(a × b) = log(a) + log(b) log(a / b) = log(a) − log(b) log(a^n) = n × log(a)

Valores especiais: ln(e) = 1, log(10) = 1 e log(1) = 0 para qualquer base. Os logaritmos são definidos apenas para números positivos — log(0) e o logaritmo de um número negativo não existem.

Exemplos resolvidos

log₁₀(1000) = 3

Perguntamos: 10 elevado a qual potência é igual a 1000? Como 10³ = 1000, a resposta é 3. Por isso o logaritmo comum de potências de 10 sempre resulta em um número inteiro exato.

ln(e²) = 2

O logaritmo natural desfaz a função exponencial. Como ln e e são funções inversas, ln(e²) = 2 exatamente. Essa identidade é fundamental em cálculo diferencial e integral.

log₂(32) = 5

Perguntamos: 2 elevado a qual potência é igual a 32? Como 2⁵ = 32, a resposta é 5. O logaritmo base 2 é amplamente usado em computação — por exemplo, um espaço de endereçamento de 32 bits requer log₂(2³²) = 32 bits.

Perguntas frequentes

O que é um logaritmo em termos simples?
Um logaritmo é simplesmente o inverso de um expoente. Se 2³ = 8, então log₂(8) = 3. Você está perguntando: qual expoente preciso usar para elevar esta base e obter meu número? É isso que um logaritmo faz — ele encontra o expoente que está faltando.
Qual é a diferença entre log e ln?
"Log" sem base escrita quase sempre significa log base 10 (o logaritmo comum), usado em engenharia, química e ciências em geral. "Ln" é o logaritmo natural com base e ≈ 2,71828, que aparece em cálculo, modelos de crescimento contínuo e física. Os dois medem o mesmo conceito — apenas com bases diferentes.
Quando devo usar log₂ (logaritmo binário)?
O logaritmo base 2 é a escolha natural em ciência da computação e teoria da informação. Ele indica quantos bits são necessários para representar um número, quantas comparações uma busca binária realiza, ou a profundidade de uma árvore binária balanceada. Se você trabalha com potências de 2, algoritmos ou dados digitais, log₂ é a sua ferramenta.
Por que o logaritmo de 0 ou de um número negativo não está definido?
Nenhuma potência real de uma base positiva pode produzir zero ou um número negativo. Por exemplo, 10^x é sempre positivo para qualquer x real, e só se aproxima de zero quando x → −∞, mas nunca chega lá. Como não existe expoente real que satisfaça b^y = 0 ou b^y < 0, os logaritmos de números não positivos não existem nos números reais.
Como os logaritmos são usados em decibéis e pH?
Ambas as escalas usam log₁₀ para comprimir intervalos enormes em números de fácil compreensão. A escala de decibéis mede intensidade sonora: dB = 10 × log₁₀(I/I₀), então cada aumento de 10 dB significa 10 vezes mais intensidade. O pH mede acidez: pH = −log₁₀([H⁺]), por isso pH 3 é 10 vezes mais ácido que pH 4. Os logaritmos tornam essas grandezas tão distintas fáceis de comparar.