The home has to be your primary residence for 2 out of the past 5 years to qualify you for the capital gains deferral. If you just own it but move to another house for the last 10 months of the 2 year period, you don't meet the qualification.
Dan was right about the $250k single and $500k married ceiling on the gain for capital gains purposes. It doesn't matter what you've done to the house in the two years, as long as the resulting gain is less than the two limits.
You could conceivably buy another house and move into it for the next two years and then move back into this house for another 10 months and then sell them both and none of the gain on either of them would be subject to the capital gains tax.
As it stands now, the house is just an asset that would qualify for long-term capital gains consideration because you've owned it more than 12 months. That would be a max tax rate of 15% and if your other income is below a certain amount it may even be 0% now with the new legislation.