Experience

Experience in DotA 2 is given by a unit on the enemy team that dies. Experience is used to level up, and it takes increasingly more experience to level up as a hero's level progresses.

A few important things about experience:


 * Experience is equally shared by all heroes in a 1200 range.
 * Hero kills outside of 1200 range will give experience to the killer.
 * Denying an allied unit does not grant experience to the ally.
 * Heroes take experience even after level 25, even though they cannot use it.
 * Building kills grant experience.

Denying
When a unit is below 25% HP, it can be attacked by allies. If an allied unit lands the killing blow, it is called denying, because you are denying your opponent the gold gained from killing the unit and your opponent also receives less experience from the killed unit.

The amount of experience enemy heroes get for a denied unit is determined by the following:


 * Each melee enemy hero in 1000 range of the killed unit gets 36/n experience, and each ranged enemy hero gets 18/n experience, where n is the total number of enemy heroes within 1000 range.

Summons
Summoned units only give 50% (rounded down) of their normal experience when killed. Most units created by spells and items are considered as summoned.

Extra hero experience
Heroes that are in a 1000 area of a dying enemy hero will be granted a certain amount of XP, depending on the total number of allied heroes in that area.


 * 1 Hero: 120+20*LevelOfDyingHero
 * 2 Heroes: 90+15*LevelOfDyingHero
 * 3 Heroes: 30+7*LevelOfDyingHero
 * 4 Heroes: 15+6*LevelOfDyingHero
 * 5 Heroes: 10+5*LevelOfDyingHero

Hero Experience Table
Below is a table that shows the experience required by Heroes to reach different levels, it also shows how much experience is gained by killing heroes and units of a certain level:

Leveling
Once a hero has acquired enough experience it will level up. When a hero levels, it's stats gets increased (each hero's stats increase differently) and it gains a skill point. The skill point can be spent on any one of the hero's spells, or it can be used to increase the hero's stats.