Fall damage

Fall damage is one of the basic principles of the game which is if you fall far enough you'll take damage. How much damage you take depends on your defense, how far you fell past the limit, or if your using a Lucky Horseshoe to negate fall damage all together.

The Math
You will not receive fall damage until you drop beyond 25 blocks (50 feet). At 26 blocks (52 feet) you receive 10 damage with no equipment. Every block above that is an additional 10 damage, or 5 damage every foot. Example: You drop down 50 blocks that is 250 damage.

You can create an equation from this:

(a - 25) * 10 = b

Where: a = Blocks above ground level (where you land) b = Fall damage

Again, you have to be ABOVE 25 blocks to receive any fall damage at all.

Also, defense plays a roll in how much damage you take.

Defense's equation is very simple. You take the defense of your armor/accessories and divide it by two then round up (at least in the case of fall damage). Example: You have 19 defense, you'll divide this by two (9.5) and round up (10). So if you fall 50 blocks you'll take 240 damage instead of 250 damage.

This makes the Fall Damage equation:

((a - 25) * 10)) - ceiling(b / 2) = c

Where: a = Blocks above ground level (where you land) b = Total Defense c = Fall damage ceiling = Round up

Maximum Fall Damage
Although there is no maximum cap on fall damage, there is a limit to how big your map is.

On a large world you can take up to 23270 damage if falling from the top of the map to the bottom. This would mean falling down 2352 blocks (after 25 blocks). So from the bottom of the map to the top of the map (that a player can have access to) is 2352 blocks + 25 + 2 (because you land on your feet, you have to account for your body and head too) which makes a large world 2379 blocks in height, or 4758 feet.