Recapture occurs on the sale of the property. The maximum amount of recapture is the amount of depreciation claimed or the amount that should have been claimed. That is, recapture occurs even on amounts that you failed to claim on the property.
http://www.bankrate.com/brm/itax/tax_adviser/20050601a1.asp