NathanTools
NathanTools
Text Tools 13
SEO Tools 7
Image Tools 19
YouTube Tools 38
Device Tests 4
PDF Tools 10
Calculators 52
Electrical Calculators 10
Time Tools 7
Random Tools 9
Converters 14
Developer Tools 11
Hash Generators 5
Password & Security 2
Network & DNS 3
Website Tools 9

Log Calculator

Pick a base and type a number to get its logarithm, or switch to antilog to raise the base to a power.

100% free No sign-up Works on any device

–

–

Updated November 2026 · Calculated in your browser

How to use the log calculator

  1. Choose the base: 10 for the common log, e for the natural log (ln), 2 for the binary log, or any other base.
  2. Type the number. The answer appears as you type, with the change-of-base working.
  3. To go the other way, open Antilog and enter the exponent to get by.

Logarithm rules

RuleFormulaExample
Productlog(xy) = log x + log ylog 20 = log 2 + log 10 = 1.301
Quotientlog(x/y) = log x − log ylog 5 = log 10 − log 2 = 0.699
Powerlog(xⁿ) = n log xlog 8 = 3 log 2 = 0.903
Change of baselog_b x = ln x ÷ ln blog₂ 10 = 2.3026 ÷ 0.6931 = 3.3219
Base itselflog_b b = 1ln e = 1
Onelog_b 1 = 0log 1 = 0

Common logs to know

log 20.30103
log 30.477121
log 50.69897
log 70.845098
log 101
log 201.30103
log 501.69897
log 1002
ln 20.693147
ln 31.098612
ln 51.609438
ln 102.302585

Need powers, roots and trig in one place? Use the scientific calculator, or the exponent calculator for bn.

Frequently asked questions

A logarithm answers “what power do I raise the base to, to get this number?” log₁₀(1000) = 3 because 10³ = 1000, and log₂(32) = 5 because 2⁵ = 32. Logs turn multiplication into addition, which is why they're used for scales such as decibels, pH and earthquake magnitude.

On calculators, “log” usually means the common logarithm with base 10, and “ln” is the natural logarithm with base e ≈ 2.71828. In many programming languages and higher maths, log(x) means ln(x), so check the convention. ln(x) = log₁₀(x) × 2.302585.

Use the change-of-base rule: log_b(x) = ln(x) ÷ ln(b). For log₃(81) that's ln 81 ÷ ln 3 = 4.3945 ÷ 1.0986 = 4. Pick “Other” and type any base.

The antilog undoes a log: antilog_b(y) = b^y. The antilog of 2 in base 10 is 10² = 100, and the antilog of 1 in base e is e ≈ 2.71828. Switch to the Antilog tab to calculate it.

No real power of a positive base gives zero or a negative number, so log(0) and log(−5) are undefined in real numbers. As x approaches 0, log(x) heads towards minus infinity. The base must also be positive and not equal to 1.
All Calculators
Age Calculator Find your exact age in years, months and days. BMI Calculator Calculate body mass index from height and weight. Loan Calculator Monthly payment, total interest and amortization schedule. Mortgage Calculator Monthly mortgage payment with taxes, insurance and PMI. Time Calculator Add or subtract time, or find the time between two times or dates. Date Calculator Days between two dates, or add and subtract days from a date. Scientific Calculator Trigonometry, logarithms, powers, roots and memory. Percentage Calculator Percent of a number, percentage change, increase and decrease. Tip Calculator Work out the tip and split the bill between friends. GPA Calculator Semester and cumulative GPA, weighted or unweighted. Grade Calculator Weighted course grade and the final exam score you need. Fraction Calculator Add, subtract, multiply and divide fractions with steps. Compound Interest Calculator Grow savings with compound interest and monthly deposits. Car Loan Calculator Monthly car payment with trade-in, sales tax and fees. Calorie Calculator Daily calories to maintain, lose or gain weight. TDEE Calculator Total daily energy expenditure at every activity level. BMR Calculator Basal metabolic rate with three formulas. Macro Calculator Daily protein, carbs and fat in grams for your goal. Body Fat Calculator Body fat % from a tape measure (US Navy method). Due Date Calculator Pregnancy due date and how far along you are. Ovulation Calculator Fertile window and ovulation dates for the next 6 cycles. Inflation Calculator What US dollars are worth across years, 1913 to today. Sales Tax Calculator Add tax to a price, take it out, or find the rate. Discount Calculator Sale price, savings and stacked discounts. Margin Calculator Profit margin, markup and selling price. Concrete Calculator Cubic yards and bags for slabs and post holes. Square Footage Calculator Area of rooms and plots in sq ft and m². Paint Calculator Gallons or litres of paint for a room. Time Card Calculator Weekly hours worked, overtime and pay. Sleep Calculator When to go to bed or wake up, in sleep cycles. Graphing Calculator Plot functions and explore them with pan and zoom. Roman Numeral Converter Convert numbers to Roman numerals and back. Square Root Calculator Square, cube and nth roots, simplified. Ratio Calculator Simplify ratios, solve proportions, split amounts. Average Calculator Mean, median, mode and weighted average. Standard Deviation Calculator Sample and population SD and variance, with steps. Quadratic Formula Calculator Solve ax² + bx + c = 0 with steps and a graph. Percent Error Calculator Percent error and percent difference, with steps. LCM & GCF Calculator Least common multiple and greatest common factor, with steps. Exponent Calculator Powers with negative, fractional and huge exponents. Factorial Calculator Exact n! up to 10,000, double factorial and gamma. Remainder Calculator Quotient and remainder with long division steps. Scientific Notation Calculator Convert and calculate in scientific and E notation. Pythagorean Theorem Calculator Find the hypotenuse or a leg of a right triangle. Trigonometry Calculator sin, cos, tan and inverses in degrees or radians. Complex Number Calculator Add, multiply, divide and convert complex numbers. Exponential Growth Calculator Growth and decay, doubling time and half-life. Multiplication Table Printable times tables up to 30 × 30, plus a quiz. Decimal to Fraction Converter Decimals, fractions and percents, including repeating decimals. Simple Interest Calculator I = P × r × t, solving for any value. APY Calculator APR to APY (effective annual rate) and back.
Esc
↑ ↓ to moveEnter to open