🧮
🧮 Math & statistics

Lambert W Function Calculator

Results update as you type.

Your numbers

Understanding the Lambert W function calculator — concept and principle

The Lambert W function is the inverse of f(w) = w·eʷ: W(x) is the number w that satisfies w·eʷ = x. This calculator returns the principal branch W₀(x) for any x ≥ −1/e and checks the answer by computing w·eʷ. Lambert W solves equations where the unknown appears both outside and inside an exponential, such as x = a·e^(bx) or xˣ = c. It appears in the analysis of algorithms, diode and transistor circuit equations, population models, combustion and enzyme kinetics.

Lambert W of 1: the omega constantA rectangle 0.567 wide and e^0.567 = 1.763 tall has area 1, so W₀(1) = 0.5671432904.Find w so that w · eʷ = 1same area = 11 × 1= 1w = 0.567eʷ =1.763unit squareHalley stepsw₀0w₁0.5w₂0.5670521w₃0.5671433W₀(1) = Ω = 0.56714329040.567 × 1.763 = 1 · also Ω = e^(−Ω)
w · eʷ = 1 means a w-by-eʷ rectangle with area 1; Halley’s steps find w = 0.5671 in three moves.

How it is calculated

The calculator solves f(w) = w·eʷ − x = 0 with Halley's method, a third-order relative of Newton's method:

The input must satisfy x ≥ −1/e ≈ −0.3679; there is no real solution below that.

The principle

The function w·eʷ falls to its minimum −1/e at w = −1 and then rises without bound. For x ≥ −1/e, the equation w·eʷ = x therefore has a solution with w ≥ −1, which is the principal branch W₀. For −1/e < x < 0 a second real solution with w < −1 also exists (branch W₋₁), but this calculator returns W₀ only. Halley's method uses both the first and second derivative of f, so near the solution the number of correct digits roughly triples each step.

Worked example

  1. Default input: x = 1, so we need w with w·eʷ = 1.
  2. Start: w₀ = ln 1 = 0.
  3. Step 1: f = −1, giving w₁ = 0.5.
  4. Step 2: w₂ = 0.5670520513. Step 3: w₃ = 0.5671432904095.
  5. One more step changes nothing at double precision. Result: W₀(1) = 0.5671432904.
  6. Check: 0.5671432904 × e^0.5671432904 = 1. This number is known as the omega constant Ω, which also satisfies Ω = e^(−Ω).
How W₀(x) changes with x (≥ −1/e)How W₀ changes with x0.20.40.60.810.250.50.7511.251.52Example: 0.5671432904x (≥ −1/e)
Each point is the calculator re-run with only “x (≥ −1/e)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
x (≥ −1/e)W₀(x)
0.250.2038883547
0.50.3517337112
0.750.4691502107
10.5671432904
1.250.6515479054
1.50.7258613578
20.852605502

How to read the result

W₀(0) = 0, W₀(e) = 1 and W₀(−1/e) = −1. For large x, W₀(x) grows slowly, roughly like ln x − ln ln x. The check value should equal your x; a mismatch would signal a convergence problem.

Common mistakes

Keep in mind: Only the principal real branch W₀ is computed. Complex values and the W₋₁ branch require dedicated software.

Frequently asked questions

How do I solve xˣ = c with Lambert W?

Take logs: x ln x = ln c. Put u = ln x to get u·eᵘ = ln c, so x = e^(W(ln c)) = ln c ÷ W(ln c).

How do I solve x = a·e^(bx)?

Multiply by −b·e^(−bx) to get (−bx)e^(−bx) = −ab, so x = −W(−ab) ÷ b, real only if −ab ≥ −1/e.

Why is it called Lambert W?

It goes back to work by Johann Heinrich Lambert and Leonhard Euler in the 18th century; the name W was popularised by a 1996 paper by Corless and colleagues.

Sources: Corless, R. M., Gonnet, G. H., Hare, D. E. G., Jeffrey, D. J., Knuth, D. E. (1996), On the Lambert W function, Advances in Computational Mathematics 5, 329–359 · NIST Digital Library of Mathematical Functions, §4.13 Lambert W-Function (dlmf.nist.gov)

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →