Know a few people that have solar and one who works at a solar company. In the best case, it's probably about 8 years to break even for sunny areas but there are tons of variables (how much electricity you use, angle of the roof, amount of sun you get, amount of tax break, etc.). If you don't stay in your house that long, I don't think you can get your money back from selling it at a premium.
If you generate extra electricity, you get some credits that are way below market value.
In addition to the huge initial cost, you have to wash the panels regularly to keep them at peak efficiency and there are a whole host of secondary issues to think about. For example, solar companies generally want you to have a new to newer roof before they install the panels so the cost may be higher than initially provisioned.
There are some programs where you can "lease" the panels where you just end up buying electricity from the solar company and they take care of everything.
*edit* We are actually just finishing up a job for a commercial customer who is having us install solar. With rebates from the local utility and federal/state tax benefits, their investment cost out of pocket after the 1st year is $21. Yes, $21.
In general, if your main goal is to purely save money, it's not that great. If there are other considerations, like wanting to not depend on the grid, then it may be a good idea to talk to more companies to compare options.