Free online graphing tool
Logarithmic Graph Calculator (y = log x, ln x)
A logarithm answers the question "what power gives this number?". Its graph is the exact mirror image of the matching exponential curve, reflected in the line y = x.
Because you cannot raise a positive base to any power and get zero or a negative result, the logarithm is only defined for x > 0. That is why the curve below simply stops at the y-axis, with a vertical asymptote there.
Key points of y = ln(x) inside the visible window (-3 ≤ x ≤ 8). Pan or zoom to search a different range.
Roots (x-intercepts)
- x = 1
y-intercept
x = 0 is outside the window
Turning points
No maximum or minimum here
Intersections
- (1, 0)
Enter a value of x
This curve is undefined somewhere in the window — gaps in the line are intentional.
What is a logarithm graph calculator?
A logarithmic graph calculator plots y = log_b(x) — the inverse of the exponential y = bˣ. The curve is defined only for x > 0, crosses the x-axis at x = 1, and has a vertical asymptote at x = 0. It rises forever but ever more slowly, which is what "logarithmic growth" means.
Key facts at a glance
| Natural log | ln x = log base e (e ≈ 2.718) |
|---|---|
| Common log | log x = log base 10 — type log(x) |
| Any base | log(x, b) gives log base b of x; log2(x) is also built in |
| Domain | x > 0 only |
| Range | All real numbers |
| x-intercept | (1, 0) for every base, because log_b 1 = 0 |
| Vertical asymptote | x = 0 — the curve dives to −∞ |
| Inverse | y = log_b x is the reflection of y = bˣ in the line y = x |
How to plot logarithm graphs — step by step
- 1
Plot the natural log
Type y = ln(x). The curve begins near the y-axis and rises slowly to the right.
- 2
Compare bases
Add y = log(x) for base 10 and y = log2(x) for base 2. Bigger bases grow more slowly.
- 3
See the inverse relationship
y = e^x and y = x are already loaded. The log and the exponential are mirror images across the straight line.
- 4
Test the domain
Hover to the left of the y-axis — there is no curve there, because logarithms of negative numbers and of zero are undefined.
Logarithm examples you can plot right now
Copy any equation into the calculator above, or open it in the full calculator with one click.
Log base 2
y = log2(x)
Passes through (2, 1), (4, 2), (8, 3) — the shape behind binary search.
Plot this →Shifted logarithm
y = ln(x - 2)
The whole curve moves 2 to the right, taking its asymptote to x = 2.
Plot this →Understanding the logarithm graph
- Why the domain excludes zero
- No power of a positive base ever equals zero or a negative number, so no logarithm exists for those inputs. On the graph the curve plunges towards −∞ as x approaches 0 from the right.
- Log laws visible on the graph
- log(ab) = log a + log b means multiplying the input adds a constant to the height. That is why every doubling of x raises log₂x by exactly 1.
- Logarithmic growth
- A logarithm rises without bound but ever more slowly — reaching y = 3 on log₂ needs x = 8, and y = 4 needs x = 16. It is the flattest kind of unbounded growth you meet in practice.
Logarithm graph — frequently asked questions
How do I graph a logarithmic function?
Type y = ln(x) for the natural logarithm or y = log(x) for base 10. For any other base use log(x, b) — for example y = log(x, 5).
Why does my log graph stop at the y-axis?
Because logarithms are undefined for x ≤ 0. The curve has a vertical asymptote at x = 0, so it plunges downwards but never crosses to the left of the axis.
What is the difference between log and ln?
ln is the logarithm to base e ≈ 2.718; log with no base written is base 10 in school notation, and that is how this calculator reads it. Type log(x, 2) or log2(x) if you need base 2.
Where does a log graph cross the x-axis?
Always at x = 1, whatever the base, because any base raised to the power 0 gives 1. The Key points tab confirms it as the root.
How do I show that log and exponential are inverses?
Plot y = ln(x), y = e^x and y = x together, then press the Equal-scale button. The log and exponential curves are perfect mirror images in the straight line.
What is the domain and range of y = log x?
The domain is x > 0 and the range is all real numbers. Shifting the graph changes the domain: y = ln(x − 2) is defined only for x > 2.
Related graph calculators
Every graph type
Hiring engineering or analytics talent in India?
MyInternships.in connects 1,20,000+ students and freshers — from IITs, NITs, IIITs and every major engineering and commerce college in India — with 5,000+ companies. Post an internship or fresher role in minutes, screen candidates by skill, campus and graduation year, and hire without any commission.
Free to use, no signup. Part of the MyInternships.in free tools for students.
