Harmonic series
1 + 1/2 + 1/3 + … diverges, growing like ln n.
Harmonic numbers Hₙ as exact fractions, ln n + γ estimates and generalized Hₙ⁽ᵖ⁾.
Enter your values below to get started.
Hₙ grows like ln n: doubling n adds about ln 2 ≈ 0.693.
The calculator shows an exact fraction for blocks of up to 3,001 terms with whole-number p.
Set p = 2 to see Σ 1/k² approach π²/6 ≈ 1.644934.
Set m to sum a block of terms, such as 1/(n + 1) + … + 1/(2n).
A harmonic sum calculator adds the reciprocals of the whole numbers, Hₙ = 1 + 1/2 + 1/3 + … + 1/n. Enter n to get the harmonic number as an exact fraction and a decimal, the approximation ln n + γ, a partial harmonic sum from k = m to n, or the generalized harmonic number Hₙ⁽ᵖ⁾ = Σ 1/kᵖ for any order p.
A harmonic sum is the sum of the reciprocals of the first n positive whole numbers, Hₙ = 1 + 1/2 + 1/3 + … + 1/n, and its value is called the nth harmonic number. The first 4 harmonic numbers are 1, 3/2, 11/6 and 25/12.
The name comes from music. A vibrating string sounds its kth harmonic when it vibrates in k equal loops, each 1/k of the string, so the lengths 1, 1/2, 1/3, … are the terms of the harmonic series. Pythagoras (about 570–495 BC) linked these length ratios to musical intervals.
The harmonic sum calculator adds the fractions exactly with whole-number arithmetic for short sums and adds decimals from the smallest term to the largest for long sums. Past 2,000,000 terms it adds 200,001 terms directly and the rest with the Euler–Maclaurin formula, which keeps the error below 10⁻¹² for n up to 10¹⁵.
n is the last term, p the power on k (1 for the harmonic series) and m the first k.
For up to 3,001 terms and whole-number p, the fractions are added with a common denominator, so H₁₀ = 7381/2520.
Longer sums are added from 1/n back to 1/m to limit rounding error.
For p = 1 the calculator shows the approximation ln n + γ + 1/(2n) − 1/(12n²) and its error.
The harmonic sum has no closed form with elementary functions, but Hₙ ≈ ln n + γ + 1/(2n) − 1/(12n²) gives 9 correct digits for n = 100. The constant γ ≈ 0.5772156649 is the Euler–Mascheroni constant, named after Leonhard Euler and Lorenzo Mascheroni.
There are 4 types of harmonic series: the harmonic series, the alternating harmonic series, the generalized harmonic series (p-series) and the partial harmonic sum. Only the alternating series and p-series with p > 1 converge.
1 + 1/2 + 1/3 + … diverges, growing like ln n.
1 − 1/2 + 1/3 − 1/4 + … converges to ln 2 ≈ 0.6931.
Σ 1/kᵖ converges for p > 1: p = 2 gives π²/6, p = 3 gives Apéry's constant ζ(3) ≈ 1.2021. It diverges for p ≤ 1.
1/m + … + 1/n ≈ ln(n/(m − 1)). The block 1/(n + 1) + … + 1/(2n) approaches ln 2.
To calculate a harmonic sum by hand, find the least common multiple (LCM) of 1 to n, rewrite each 1/k over that denominator, add the numerators and reduce. The process takes 4 steps. Here is H₅.
The harmonic series diverges: its terms split into infinitely many blocks that each add to at least 1/2. French philosopher Nicole Oresme gave this proof around 1350: 1/3 + 1/4 ≥ 1/2, 1/5 + … + 1/8 ≥ 1/2, 1/9 + … + 1/16 ≥ 1/2, and so on, so H2ᵍ ≥ 1 + g/2.
The growth is slow. H₁₀₀ ≈ 5.19 and H₁,₀₀₀,₀₀₀ ≈ 14.39. The sum first passes 3 at n = 11, passes 5 at n = 83 and passes 10 at n = 12,367. The terms 1/k shrink to 0, which shows that terms tending to 0 do not guarantee convergence.
Enter n, keep p = 1 and m = 1 for the harmonic number Hₙ, and press Calculate. Change p for a generalized harmonic number or m for a block of terms. The result shows the exact fraction, the decimal, the ln n + γ estimate, a term table and a graph.
Any whole number from 1 to 10¹⁵.
1 for 1/k, 2 for 1/k², 0.5 for 1/√k.
1 for Hₙ; a larger m sums 1/m + … + 1/n.
Open the Graph tab to compare the partial sums with ln k + γ.
Harmonic sums appear wherever a quantity is shared 1, 2, 3, … ways. There are 5 common applications:
Common harmonic and generalized harmonic sums with exact and decimal values.
| Sum | Exact | Decimal | Calculator |
|---|---|---|---|
| 137/60 | 2.283333 | ||
| 7381/2520 | 2.928968 | ||
| 55835135/15519504 | 3.597740 | ||
| – | 5.187378 | ||
| – | 7.485471 | ||
| – | 14.392727 | ||
| 1968329/1270080 | 1.549768 | ||
| 155685007/232792560 | 0.668771 |
Try each one, then reveal the answer or solve it in the calculator.
Find H₆ as a fraction.
Find H₈ as a fraction.
Estimate H₅₀ and the coupon collector's expected draws for 50 coupons.
Find Σ 1/k³ for k = 1 to 5.
Find 1/3 + 1/4 + 1/5 + 1/6.
Show that H₁₁ is the first harmonic number above 3.
Discover 67 free sum calculators across different categories. Find the right calculator for your needs.
Try a different name or choose another category.
A harmonic sum calculator is an online tool that adds 1 + 1/2 + 1/3 + … + 1/n. It returns the harmonic number Hₙ as an exact fraction and a decimal, the ln n + γ approximation, partial sums from m to n and generalized sums Σ 1/kᵖ.
The nth harmonic number is Hₙ = Σ 1/k for k = 1 to n. There is no elementary closed form; Hₙ ≈ ln n + γ + 1/(2n) − 1/(12n²) with γ ≈ 0.5772.
No, the harmonic series does not converge. Its partial sums grow like ln n without bound, as Nicole Oresme proved around 1350.
The sum of 1/n² from 1 to infinity is π²/6 ≈ 1.644934. Leonhard Euler solved this Basel problem in 1734.
H₁₀ = 7381/2520 ≈ 2.928968, the sum 1 + 1/2 + … + 1/10.
The harmonic series first exceeds 10 at n = 12,367 terms. H₁₂,₃₆₆ ≈ 9.99996 and H₁₂,₃₆₇ ≈ 10.00004.
Yes, the alternating harmonic series 1 − 1/2 + 1/3 − … converges to ln 2 ≈ 0.6931 by the alternating series test.
The Euler–Mascheroni constant γ ≈ 0.5772156649 is the limit of Hₙ − ln n as n → ∞. Nobody has proved whether γ is rational or irrational.
No, a harmonic number Hₙ is never a whole number for n > 1. The denominator always keeps the factor of the largest power of 2 up to n.
A harmonic sum adds the reciprocals 1 + 1/2 + … + 1/n, and the harmonic sum calculator returns that harmonic number exactly, as a decimal and against the estimate ln n + γ. The harmonic series diverges, but slowly; its p-series cousins converge for every p > 1.
Not sure which setting matches your problem? Answer the questions below.