Connect via MCP →

Enter Calculation

Formula

Formula: Logarithm Function Table and Graph Calculator
Show calculation steps (1)
  1. Change of base

    Change of base: Logarithm Function Table and Graph Calculator

    Logarithm to an arbitrary base a using natural logs.

Advertisement

Results

Plotted function
ln(x)
100 plotted points of 101 table rows
Defined rows (plotted points) 100
Total table rows 101
First defined point (x, y) (0.05, -2.995732)
x y = ln(x)
0 undefined
0.05 -2.99573
0.1 -2.30259
0.15 -1.89712
0.2 -1.60944
0.25 -1.38629
0.3 -1.20397
0.35 -1.04982
0.4 -0.916291
0.45 -0.798508
0.5 -0.693147
0.55 -0.597837
0.6 -0.510826
0.65 -0.430783
0.7 -0.356675
0.75 -0.287682
0.8 -0.223144
0.85 -0.162519
0.9 -0.105361
0.95 -0.0512933
1 0
1.05 0.0487902
1.1 0.0953102
1.15 0.139762
1.2 0.182322
1.25 0.223144
1.3 0.262364
1.35 0.300105
1.4 0.336472
1.45 0.371564
1.5 0.405465
1.55 0.438255
1.6 0.470004
1.65 0.500775
1.7 0.530628
1.75 0.559616
1.8 0.587787
1.85 0.615186
1.9 0.641854
1.95 0.667829
2 0.693147
2.05 0.71784
2.1 0.741937
2.15 0.765468
2.2 0.788457
2.25 0.81093
2.3 0.832909
2.35 0.854415
2.4 0.875469
2.45 0.896088
2.5 0.916291
2.55 0.936093
2.6 0.955511
2.65 0.97456
2.7 0.993252
2.75 1.0116
2.8 1.02962
2.85 1.04732
2.9 1.06471
2.95 1.08181
3 1.09861
3.05 1.11514
3.1 1.1314
3.15 1.1474
3.2 1.16315
3.25 1.17865
3.3 1.19392
3.35 1.20896
3.4 1.22378
3.45 1.23837
3.5 1.25276
3.55 1.26695
3.6 1.28093
3.65 1.29473
3.7 1.30833
3.75 1.32176
3.8 1.335
3.85 1.34807
3.9 1.36098
3.95 1.37372
4 1.38629
4.05 1.39872
4.1 1.41099
4.15 1.42311
4.2 1.43508
4.25 1.44692
4.3 1.45862
4.35 1.47018
4.4 1.4816
4.45 1.4929
4.5 1.50408
4.55 1.51513
4.6 1.52606
4.65 1.53687
4.7 1.54756
4.75 1.55814
4.8 1.56862
4.85 1.57898
4.9 1.58924
4.95 1.59939
5 1.60944

What this calculator does

This tool builds a table of values and a graph for a logarithm function over a range of x values. You can choose the natural logarithm \(\ln(x)\) (base e), the common logarithm \(\log(x)\) (base 10), or a logarithm to any base a, written \(\log_a(x)\). For each x stepping from your start value to your end value by a fixed increment, it computes \(y = f(x)\), lists the (x, y) pairs, and plots the resulting curve.

Curves of three logarithm functions on shared axes
Logarithm curves for ln(x), log10(x), and a custom base, all passing through (1, 0).

How to use it

Pick the function from the dropdown. If you select \(\log_a(x)\), enter the base a (it must be greater than 0 and not equal to 1). Set "Range x (from)" and "Range x (to)" plus the "Increment" (step). Choose how many significant digits to display. The calculator iterates through the range, skipping any x value that is zero or negative because the logarithm is undefined there. To keep things responsive the table is capped at 301 rows.

The formula

The natural logarithm \(y = \ln(x)\) is the inverse of \(e^x\). The common logarithm is $$y = \log_{10}(x) = \frac{\ln(x)}{\ln(10)}.$$ For an arbitrary base a, the change-of-base formula gives $$\log_a(x) = \frac{\ln(x)}{\ln(a)}.$$ Internally Math.log is the natural log and Math.log10 is base 10. Because \(\ln(a) = 0\) when \(a = 1\), a base of exactly 1 is rejected to avoid division by zero.

Change of base formula shown as a fraction of two logarithms
Change-of-base: any logarithm equals ln(x) divided by ln(a).

Worked example

Choose \(\log_a(x)\) with \(a = 2\), x from 1 to 8, step 1. The change-of-base formula gives: $$\log_2(1)=0,\quad \log_2(2)=1,\quad \log_2(3)=1.584963,\quad \log_2(4)=2,\quad \log_2(5)=2.321928,\quad \log_2(6)=2.584963,\quad \log_2(7)=2.807355,\quad \log_2(8)=3.$$ All 8 rows are defined (every x is positive), so the table has 8 rows and 8 plotted points, with the first point at (1, 0).

FAQ

Why is x = 0 shown as undefined? The logarithm of zero tends to negative infinity, and logs of negative numbers are not real, so those rows are flagged undefined and not plotted; the y-axis behaves as a vertical asymptote.

Can the base be a fraction? Yes. Any a with \(0 < a < 1\) (such as 0.5) is valid and produces a decreasing curve. Only \(a = 1\) and \(a \le 0\) are disallowed.

What does "significant digits" change? It only affects how many figures are shown in the table; the underlying math is always full double precision.

Last updated: