This calculator gives the two hit-point totals every D&D 5e player needs: the theoretical maximum (full die every level) and the average fixed value most tables actually use. It handles multiclass builds by letting you stack several class rows, and it applies your Constitution modifier to every level.
How it works
Level 1 takes the full first hit die. Every level after that adds either the maximum die (for max HP) or the fixed average. Constitution is added once per character level:
firstLevelHP = maxDie(class1) + CON
avgPerLevel(d) = (d / 2 + 1) + CON
maxPerLevel(d) = d + CON
totalLevels = sum of levels across all classes
averageHP = firstLevelHP + Σ avgPerLevel over the remaining levels
maxHP = firstLevelHP + Σ maxPerLevel over the remaining levels
The first character level always uses the maximum of its hit die — this is a fixed rule in 5e, not a choice. Multiclassing simply means later levels draw their die size from whichever class you took that level in.
Example and tips
A level 5 Fighter (d10) with +2 Constitution has 12 at level 1, then four levels of 6 + 2 = 8 each, for 12 + 32 = 44 average HP; the max would be 12 + 4 × 12 = 60. For a multiclass Fighter 3 / Wizard 2, the first level (whichever class you started in) is maxed, and the rest mix d10 and d6 averages. Remember that toughness feats and similar effects add flat HP on top of the figure shown here.