The bottom is the top
+ the outerHeight
, not the height
, as it wouldn't include the margin or padding.
var $bot,
top,
bottom;
$bot = $('#bottom');
top = $bot.position().top;
bottom = top + $bot.outerHeight(true); //true is necessary to include the margins