Math

Instant, private, and free

Harmonic Number Calculator.

Calculate the nth harmonic number Hₙ.

On-device calculationNo signup
01

Set your values

Results update as you type.

Result: harmonicNumber: 2.928968 · n: 10.000000

Result

harmonicNumber: 2.928968 · n: 10.000000

Use Cases

Mathematics and Number Theory

Harmonic numbers appear in various mathematical contexts, such as the analysis of algorithms, the study of the Riemann zeta function, and in combinatorial identities.

Example: Use Hₙ to approximate the sum of reciprocals in a series.

Physics and Engineering

Harmonic numbers are used in physics for problems involving discrete sums, such as in the analysis of electrical circuits or in the study of certain wave phenomena.

Example: Calculate the total resistance of a ladder network.

Frequently Asked Questions

What is a harmonic number?
The nth harmonic number Hₙ is the sum of the reciprocals of the first n natural numbers: Hₙ = 1 + 1/2 + 1/3 + ... + 1/n. It grows slowly, like the natural logarithm of n.
How do I use this calculator?
Simply enter a positive integer n in the input field. The calculator will compute Hₙ and display the result. For example, if you enter 5, it will calculate 1 + 1/2 + 1/3 + 1/4 + 1/5 = 2.28333.
What is the harmonic number for n=1?
For n=1, H₁ = 1. This is because the sum includes only the first term, which is 1/1 = 1.

Tips & Common Mistakes

Tips

  • Ensure n is a positive integer. The calculator may not handle non-integer or negative values correctly.
  • For large n, the harmonic number can be approximated by ln(n) + γ, where γ is the Euler-Mascheroni constant (≈0.57721).
  • Use the result to verify your own calculations or to explore the growth of harmonic numbers.

Common Mistakes to Avoid

  • Entering zero or a negative number. Harmonic numbers are defined only for positive integers n.
  • Confusing harmonic numbers with harmonic means or harmonic series in music.
  • Expecting the result to be an integer; harmonic numbers are usually non-integer rational numbers.

Last updated: August 13, 2026