Experience

Whenever a unit in DOTA 2 dies, all nearby heroes that are allied with the unit that killed it gain an amount of experience dependent on the killed unit's level. The experience is equally shared among all allies of the killing unit, the killing unit itself does not gain more experience than any other unit.

A few important things about experience:


 * Experience range in DOTA 2 is 1200, all allied heroes in that area gain experience from the kill.
 * Any hero kill done outside of this 1200 area grants experience to the killer.
 * Killing a unit that you are allied with does not grant you experience.
 * Heroes continue to take a portion of the experience even when they are level 25.
 * Even building kills give 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.