This guide shows you how to enter logarithms (logs) into a standard scientific or graphing calculator. You’ll learn how to compute common logs (base 10), natural logs (base e), and logs with any custom base, and how to interpret the result. No special equipment is needed beyond a calculator with a log or ln button—most scientific and graphing calculators have these.
Formula
The logarithm of a number x with base b is written as log_b(x). It answers the question: “To what exponent must b be raised to get x?” The formula is:
log_b(x) = y means b^y = x
On a calculator, you often use the change-of-base formula to compute any base:
log_b(x) = ln(x) / ln(b) (or log(x) / log(b))
Where:
- x = the number you are taking the logarithm of (must be positive)
- b = the base (must be positive and not equal to 1)
- ln = natural logarithm (base e, where e ≈ 2.71828)
- log = common logarithm (base 10)
Worked Example
Using the default values: x = 1000, b = 10. We want log_10(1000).
- Press the ln button, then type 1000, then close the parenthesis if needed. You get ln(1000) ≈ 6.907755.
- Press the division sign.
- Press ln, type 10, close parenthesis. You get ln(10) ≈ 2.302585.
- Now divide: 6.907755 ÷ 2.302585 = 3.000000.
So log_10(1000) = 3, because 10^3 = 1000. The calculator block above gives the same result: 3.000000.
Step-by-Step
- Identify the base and the number. For log_2(8), the base is 2 and the number is 8. For log(100) with no base written, the base is 10 (common log). For ln(x), the base is e (natural log).
- If your calculator has a dedicated log button (base 10): Press the log button, type the number, then close the parenthesis if your calculator requires it. Press Enter or =. The result is the exponent.
- If your calculator has a dedicated ln button (base e): Press ln, type the number, close parenthesis, press Enter or =. This gives the natural logarithm.
- For any other base (like 2, 5, or 20): Use the change-of-base formula. Type: ln(number) ÷ ln(base) or log(number) ÷ log(base).
- On graphing calculators (like TI-84): You can also use the logBASE function: press MATH, scroll to A: logBASE(, then enter the base and the number. Or just type the change-of-base formula directly.
- For logs with a variable exponent (like solving 2^x = 32): Take the log of both sides: x = log(32) / log(2). Enter that exactly: log(32) ÷ log(2) = 5.
- Check your answer: Raise the base to the result. If you get the original number, your log is correct. For example, 10^3 = 1000, so log_10(1000) = 3.
Common Mistakes
- Forgetting parentheses: When you type log 100 ÷ 10, a calculator may interpret it as (log 100) ÷ 10, not log(100 ÷ 10). Always use parentheses around the number.
- Using the wrong base: The log button is base 10, ln is base e. If you need log base 2 and you press log, you get log_10, not log_2. Use the change-of-base formula.
- Entering zero or a negative number: Logarithms are only defined for positive numbers. If you try log(0) or log(-5), you’ll get an error or a non-real answer.
- Misreading the output: A log result is an exponent. For example, log_10(1000) = 3, not 1000. The result is the power you raise the base to.
- Using the inverse (antilog) by mistake: Some calculators have a 10^x or e^x button. That’s the inverse, not the log. Don’t press that unless you want to undo a log.
Tips
- Use the change-of-base formula for any base: It works on any calculator that has log or ln. Just remember: log_b(x) = ln(x) / ln(b).
- Memorize common logs: log_10(1)=0, log_10(10)=1, log_10(100)=2, log_10(1000)=3. This helps you sanity-check your calculator.
- Use parentheses around the entire denominator: For log_2(8), type ln(8) / ln(2), not ln(8)/ln(2) without parentheses—though most calculators handle that correctly, it’s safer to add them.
- Know your calculator’s entry mode: Some calculators require you to type the number first, then the log button (e.g., 1000 log). Others require the log button first. Check the manual or test with log(10) to see which gives 1.
- For natural logs, use ln: In science and engineering, natural logs are common. The ln button is usually right next to log.
Troubleshooting
- Error or “Math Error” when entering log(0) or log(negative): Logarithms are undefined for zero and negative numbers. Double-check that your number is positive. If you’re solving an equation, the solution may be invalid.
- Result is not what you expected: Verify the base. If you wanted log base 2 of 8 and got 0.903, you accidentally used base 10. Use ln(8)/ln(2) = 3.
- Calculator gives a decimal when you expect an integer: For example, log_10(50) is not a whole number. That’s correct—it’s about 1.69897. If you expected an integer, check if the number is a perfect power of the base.
- Parentheses issue: If you type log(100) + 5 and get 7, that’s correct (2+5). If you wanted log(105), you need log(100+5). Always use parentheses to group.
- Calculator shows “Syntax Error” on graphing calculators: Make sure you close all parentheses. For example, log(100) not log(100.
- ln vs log confusion: If you press ln when you meant log, you’ll get a different number. For example, ln(100) ≈ 4.605, while log(100) = 2. Check which button you pressed.
Frequently Asked Questions
How do I enter log base 2 on a calculator?
Use the change-of-base formula: type ln(x) / ln(2) or log(x) / log(2). On a TI-84, you can also use MATH > logBASE(2, x).
What is the difference between log and ln?
log is base 10 (common log), ln is base e (natural log). They are both logarithms, just with different bases. The change-of-base formula lets you convert between them.
Can I calculate a log with a base like 5 or 20?
Yes. Use the change-of-base formula: log_5(x) = ln(x) / ln(5). Or use the logBASE function on graphing calculators.
Why does my calculator give an error for log(-1)?
Because logarithms are only defined for positive real numbers. The exponent of a positive base is always positive, so you cannot take the log of a negative number (in real numbers).
How do I solve for x in 2^x = 16 using a calculator?
Take log of both sides: x = log(16) / log(2). Enter that: log(16) ÷ log(2) = 4. So x = 4.
What is the antilog and how do I do it?
The antilog is the inverse: if y = log_b(x), then x = b^y. To compute it, use the power button: for base 10, press 10^x; for base e, press e^x.
Related
Formula used
in x | Number (x) | - | 1000 | 0.000001 | 1e15 in b | Base (b) | - | 10 | 0.000001 | 1e15 out result | Logarithm (log_b x) | - | ln(x) / ln(b) | 6
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Measuring Light Speed & Wavelength: How It Works
- Draco Race Blox Fruits: How to Get It
- ES File Explorer Tips & Tricks That Actually Work
- Remove Google FRP Lock on Oppo: Step-by-Step
- Forza Horizon 6: Unlock Legend Island & Earn Horizon Legend
- Clean Hair Dryer Filter: Improve Airflow