Boosted by the beginnings of a housing recovery, PulteGroup and Lennar ranked among the 10 largest gainers in the S&P 500. Pultegroup nearly quadrupled—shares rose 182% to $17.61. Lennar, meanwhile, increased 94% to $37.80.

Read what Forbes believes were the best and worst stocks to own in 2012.