Mortgage CalculatorLoan CalculatorAuto Loan CalculatorCompound Interest CalculatorSimple Interest CalculatorSavings CalculatorRetirement CalculatorROI CalculatorCAGR CalculatorPresent Value CalculatorFuture Value CalculatorAnnuity CalculatorAPR CalculatorCredit Card Payoff CalculatorDebt-to-Income Ratio CalculatorIncome Tax Calculator (US Federal)Salary to Hourly Wage CalculatorTip CalculatorDiscount CalculatorSales Tax CalculatorProfit Margin CalculatorMarkup CalculatorBreak-Even CalculatorInflation CalculatorSavings Goal CalculatorExchange Rate CalculatorPercentage CalculatorPercentage Change CalculatorFraction CalculatorAverage CalculatorMean, Median & Mode CalculatorStandard Deviation CalculatorRatio CalculatorProportion CalculatorExponent CalculatorLogarithm CalculatorSquare Root CalculatorFactorial CalculatorGCD & LCM CalculatorPythagorean Theorem CalculatorQuadratic Equation CalculatorSlope CalculatorArea CalculatorPerimeter CalculatorVolume CalculatorCircle CalculatorTriangle CalculatorRandom Number Range AnalyzerScientific Notation CalculatorRounding CalculatorBMI CalculatorBMR CalculatorTDEE CalculatorCalorie CalculatorBody Fat CalculatorIdeal Weight CalculatorMacro CalculatorProtein CalculatorWater Intake CalculatorOvulation CalculatorPregnancy Due Date CalculatorConception CalculatorPeriod CalculatorPace CalculatorHeart Rate Zones CalculatorVO2 Max CalculatorOne Rep Max CalculatorSleep CalculatorBlood Alcohol Calculator (BAC)Lean Body Mass CalculatorCalories Burned CalculatorPregnancy Weight Gain CalculatorAge CalculatorDate Duration CalculatorDays Between Dates CalculatorAdd Days to Date CalculatorBusiness Days CalculatorWork Hours CalculatorTime Duration CalculatorTime Zone ConverterWeek Number CalculatorDay of Week CalculatorLeap Year CalculatorUnix Timestamp ConverterTime Add / Subtract CalculatorDays Until CalculatorZodiac Sign CalculatorChinese Zodiac CalculatorRetirement Date CalculatorQuarter CalculatorLength ConverterWeight ConverterTemperature ConverterVolume ConverterArea ConverterSpeed ConverterTime ConverterData Storage ConverterPressure ConverterEnergy ConverterPower ConverterForce ConverterTorque ConverterAngle ConverterFuel Consumption ConverterCooking ConverterShoe Size ConverterDensity ConverterFrequency ConverterHeight ConverterFlow Rate ConverterNumber to Words ConverterRoman Numeral ConverterBeaufort Scale ConverterScreen Size CalculatorDecibel ConverterConcrete CalculatorTile CalculatorPaint CalculatorFlooring CalculatorDrywall CalculatorBrick CalculatorGravel CalculatorMulch CalculatorDeck CalculatorFence CalculatorRoof Pitch CalculatorRoofing Material CalculatorStairs CalculatorSquare Footage CalculatorCubic Yard CalculatorBoard Feet CalculatorInsulation CalculatorWallpaper CalculatorOhm's Law CalculatorParallel Resistor CalculatorVelocity CalculatorAcceleration CalculatorKinetic Energy CalculatorPotential Energy CalculatorForce CalculatorMomentum CalculatorFriction CalculatorProjectile Range CalculatorPendulum CalculatorWavelength CalculatorpH CalculatorMolarity CalculatorDilution CalculatorIdeal Gas CalculatorBoyle's Law CalculatorHalf-Life CalculatorGPA CalculatorGrade CalculatorFinal Grade CalculatorWeighted Grade CalculatorDog Age CalculatorCat Age CalculatorElectricity Cost CalculatorFuel Cost CalculatorSplit Bill CalculatorUnit Price CalculatorReading Time CalculatorSubnet CalculatorDownload Time CalculatorProbability CalculatorRent Affordability CalculatorSolar Payback CalculatorHousehold Budget CalculatorEmergency Fund Calculator

Logarithm Calculator

Logarithm of a number in base 10, e, 2 or any custom base.

Quick answer

  • Formula: log_b(x) = ln(x) ÷ ln(b) — the power to which b must be raised to give x
  • Worked example — Logarithm in the selected base: 2.0000 (full example below).

Logarithm Calculator

Worked example result
Logarithm in the selected base2.0000
ln (base e)4.6052
log₁₀2.0000
log₂6.6439

log₁₀(100) = 2, because 10² = 100. The same number in base 2 is about 6.644, and its natural log is about 4.605.

Diagram: how the Logarithm Calculator works — you enter Number (x), Base, Custom base (used only when 'Custom base' is selected); it applies the formula log_b(x) = ln(x) ÷ ln(b) — the power to which b must be raised to g…; and the worked example gives Logarithm in the selected base: 2.0000.
How the Logarithm Calculator works — the inputs, the formula, and a worked example (Logarithm in the selected base: 2.0000).

A logarithm answers the question: to what power must I raise this base to get that number? log₁₀(1000) = 3 because 10³ = 1,000. Logarithms turn multiplication into addition, which is why they appear everywhere growth is measured.

Enter a positive number and pick a base — 10 for common logs, e for the natural log (ln), 2 for binary, or any custom base. All four common versions are shown together so you can compare them.

The formula

log_b(x) = ln(x) ÷ ln(b) — the power to which b must be raised to give x

Worked example

log₁₀(100) = 2, because 10² = 100. The same number in base 2 is about 6.644, and its natural log is about 4.605.

Worked example for the Logarithm Calculator: with Number (x) 100, Base Base 10 (common log), Custom base (used only when 'Custom base' is selected) 5, the result is Logarithm in the selected base: 2.0000; ln (base e): 4.6052.
The worked example, with the example values entered and the results they give.

The example is pre-loaded in the result panel — press Calculate with your own numbers to replace it.

Frequently asked questions

Why is there no logarithm of zero or a negative number?

Because no power of a positive base ever reaches zero or goes negative — 10^x is always positive. The logarithm is therefore undefined (in real numbers) for values of zero or below.

Where are logarithms used in real life?

Earthquake magnitude (Richter), sound volume (decibels), acidity (pH), and the number of steps in binary search all use logarithmic scales, because the underlying quantities span enormous ranges.

How are logs and exponents related?

They are inverses: log_b(x) = y exactly when b^y = x. If you know 2^10 = 1,024, then log₂(1024) = 10.

Category: Math calculators

Sources & methodology

This calculator applies the formula shown on this page exactly as written, using the standard definitions for its inputs. Results are computed from the values you enter — no data is stored — and are rounded only for display.

Content last reviewed by CalcHub Editorial.

Embed this calculator on your site

Free to use with attribution — paste the snippet below and the calculator appears on your page, with a link back to CalcHub.

<iframe src="https://calc-hub-63e.pages.dev/embed/logarithm-calculator" width="100%" height="640" style="border:1px solid #d9e2ea;border-radius:12px" loading="lazy" title="Logarithm Calculator — CalcHub"></iframe>

Open the embed version →