If I never took depreciation, can I still claim it in the year I sell?
Yes. Skipping depreciation does not avoid recapture, because your basis is reduced by the depreciation allowable even if you did not claim it. To get the deduction too, you can file Form 3115 with your return for the year of sale; Rev. Proc. 2025-23 section 6.07 covers property disposed of in the year of change, and you can also make it on an amended return for that year while it is still open. It does not cover property given up in a 1031 exchange unless you made a special election for the replacement property.
Learn more: One-pager: you did a cost seg, now you want to sell · Explainer: what happens when you sell
Source: 26 U.S.C. 1016(a)(2), basis reduced by depreciation allowed but not less than allowable · 26 U.S.C. 1245(a) and (b), recapture on section 1245 property and its exceptions · Rev. Proc. 2025-23, section 6.07 (Form 3115 for property disposed of in the year of change), IRB 2025-24
General information, not tax advice. Tax law changes, and the right answer for your return depends on your facts.