Talk to a tax accountant, as stated.
In Iowa (where I live), it applies to flipped real estate that you buy and re-sell within 24 months (last one I did I bought and then sold in the 25th month, therefore no capital gains)
And, yes, the Capital Gains tax is only subject to the value that you gained in the two year period (so, if your Capital Gains is 30%, and you bought a home for $100,000 and sold it for $200,000, you would pay Capital Gains on $100,000 increase. That can be offset by improvements, though, so keep that in mind as well).

Good luck!

JS


76 Dodge Adventurer Sport Power Wagon W100 318, 727, NP203 Fulltime 4x4 Russet Red
06 Jeep Commander Ltd 4x4, 5.7L Hemi, QuadraDrive II
06 Chrysler 300C AWD 5.7L Hemi
10 Mopar 10 Challenger R/T, #483/500, 5.7L HEMI
10 Jeep Grand Cherokee Ltd 4x4 5.7L HEMI
11 Dodge Ram 1500 LoneStar Quad Cab, 5.7L HEMI, Fulltime 4x4, Deep Cherry Red
16 Jeep Cherokee Limited 3.2L Pentastar V6, 9 Speed Torqueflite, 4x4, Black