It depends what type of Poker you are playing. The general BRM(Bankroll Management) guidelines are:
Cash Games - 20x Buyins
Sit & Go - 40x Buyins
MTTs - 80-100x Buyins
If you multitable then it's good practice to have this number of Buyins for EACH table that you play on. For example. If you are an NL2 cash grinder then you need a bankroll of 20 x $2 = $40. If you play on 4 tables at a time then a bankroll of 4 x $40 = $160 would be good. If you're 4-tabling $7 SNGs then a good bankroll would be $7 x 40 x 4 = $1120 but $1000 would be fine too. It all really depends on your winrate. If you are only a marginal winner then you need a larger bankroll as your swings will be deeper than a player who is crushing their limit.
Using these guidelines for your bankroll of $5000, I recommend the following:
-Play NL200 Cash Games Maximum or even NL100 as this will give you some nice breathing space (25-30 Buyins). If you play on 4 Tables then I recommend NL50.
-For Sit and Go's I think you should not play higher than $100 Buyins and drop this to $30 Buyins if you play on 4 Tables. Or $60 Buyin if you play on just 2 tables. You have 50 Buyins for $100 SNGs which is fine.
-If you're an MTT player then you have a good bankroll for $50 Buyin tournaments (100 Buyins). Again divide this figure by the number of tables you play on. So you could limit yourself to $11 tournaments if you play on 4 tables.
If you follow this advice, you are very unlikely to go broke.