Calculateur de Logarithmes

Calculez log, ln et les logarithmes dans n'importe quelle base — antilogarithme inclus

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

Qu'est-ce qu'un logarithme ?

Un logarithme répond à la question : à quelle puissance faut-il élever la base pour obtenir ce nombre ? Par exemple, log₁₀(1000) = 3 car 10³ = 1000. Les logarithmes transforment la multiplication en addition, ce qui simplifie énormément les calculs sur de très grands nombres. On les retrouve en sciences, en ingénierie, en musique et en informatique.

Les deux logarithmes les plus courants sont le log base 10 (écrit simplement « log ») et le logarithme naturel (base e ≈ 2,71828, écrit « ln »). Ce calculateur accepte n'importe quelle base — y compris log₂, indispensable en informatique pour mesurer des bits et de l'information. Vous pouvez aussi calculer des antilogarithmes, qui inversent l'opération.

Comment utiliser le calculateur de logarithmes

  1. Entrez le nombre dont vous souhaitez calculer le logarithme (doit être un nombre positif strictement supérieur à zéro).
  2. Sélectionnez la base : 10 pour le logarithme décimal, e pour le logarithme naturel (ln), 2 pour le logarithme binaire, ou entrez une base personnalisée.
  3. Cliquez sur Calculer pour obtenir le résultat instantanément.
  4. Pour l'antilogarithme : entrez la valeur de l'exposant, sélectionnez la même base et le calculateur retourne le nombre d'origine (b^y).

Formules et identités du logarithme

Définition : log_b(x) = y signifie b^y = x Logarithme décimal : log(x) = log_10(x) Logarithme naturel : ln(x) = log_e(x) Logarithme binaire : log_2(x) Changement de base : log_b(x) = ln(x) / ln(b) Antilogarithme : antilog_10(y) = 10^y Anti-ln : e^y Identités clés : log(a × b) = log(a) + log(b) log(a / b) = log(a) − log(b) log(a^n) = n × log(a)

Valeurs particulières : ln(e) = 1, log(10) = 1 et log(1) = 0 pour toute base. Les logarithmes ne sont définis que pour les nombres strictement positifs — log(0) et le logarithme d'un nombre négatif n'existent pas.

Exemples résolus

log₁₀(1000) = 3

On demande : 10 à quelle puissance est égal à 1000 ? Comme 10³ = 1000, la réponse est 3. C'est pourquoi le logarithme décimal des puissances de 10 donne toujours un entier exact.

ln(e²) = 2

Le logarithme naturel est l'inverse de la fonction exponentielle. Comme ln et e sont des fonctions réciproques, ln(e²) = 2 exactement. Cette identité est fondamentale en analyse et en équations différentielles.

log₂(32) = 5

On demande : 2 à quelle puissance est égal à 32 ? Comme 2⁵ = 32, la réponse est 5. Le logarithme base 2 est très utilisé en informatique — par exemple, un espace d'adressage de 32 bits nécessite log₂(2³²) = 32 bits.

Questions fréquentes

Qu'est-ce qu'un logarithme en termes simples ?
Un logarithme est simplement l'inverse d'un exposant. Si 2³ = 8, alors log₂(8) = 3. Vous cherchez : quel exposant dois-je appliquer à cette base pour obtenir mon nombre ? C'est tout ce que fait un logarithme — il trouve l'exposant manquant.
Quelle est la différence entre log et ln ?
« Log » sans base écrite désigne presque toujours le log base 10 (logarithme décimal), utilisé en ingénierie, en chimie et dans les sciences appliquées. « Ln » est le logarithme naturel de base e ≈ 2,71828, omniprésent en analyse, dans les modèles de croissance continue et en physique. Les deux mesurent le même concept — avec des bases différentes.
Quand utiliser log₂ (logarithme binaire) ?
Le logarithme base 2 est l'outil de référence en informatique et en théorie de l'information. Il indique combien de bits sont nécessaires pour représenter un nombre, combien de comparaisons effectue une recherche dichotomique, ou la profondeur d'un arbre binaire équilibré. Si vous travaillez avec des puissances de 2, des algorithmes ou des données numériques, log₂ est votre allié.
Pourquoi le logarithme de 0 ou d'un nombre négatif est-il indéfini ?
Aucune puissance réelle d'une base positive ne peut produire zéro ni un nombre négatif. Par exemple, 10^x est toujours positif pour tout x réel, et ne se rapproche de zéro que lorsque x → −∞ sans jamais l'atteindre. Comme il n'existe pas d'exposant réel satisfaisant b^y = 0 ou b^y < 0, les logarithmes de nombres non positifs n'existent pas dans les réels.
Comment les logarithmes sont-ils utilisés dans les décibels et le pH ?
Les deux échelles utilisent log₁₀ pour comprimer des plages immenses en chiffres compréhensibles. L'échelle des décibels mesure l'intensité sonore : dB = 10 × log₁₀(I/I₀), donc chaque augmentation de 10 dB correspond à une intensité 10 fois plus grande. Le pH mesure l'acidité : pH = −log₁₀([H⁺]), donc un pH de 3 est 10 fois plus acide qu'un pH de 4. Les logarithmes rendent ces grandeurs très différentes faciles à comparer.