It really depends on your market and your situation. As soon as I have a downpayment saved up, I'm buying. Rent here for modest place is $1800. That MIGHT get me enough room for a king bed, garage, and a washer and dryer in the apartment. Buying, with taxes and insurance, I'd have about $1,100 a month for a bigger place in the same area (HOA may be more though).
Where I came from before this, it was basically a wash. $700 to rent a place, $400 in mortgage. After factoring in upkeep, down payment, closing costs, it made more sense to rent since the break-even was about 5 years and we knew we wouldn't be there that long.