You eliminate the AMT by selling, gifting, or otherwise transferring ISO shares during the calendar year of ISO exercise.

Example: You exercise ISOs in January 2022 and sell the shares in December 2022.

If you sell the shares in the calendar year after the year of exercise, the spread at exercise is still part of the AMT income calculation, even if the sale occurs less than a year after the date of exercise (e.g. you exercise in November 2022 and sell the shares in May 2023).

See a related FAQ on the tax consequences of ISO exercises. Another FAQ explains why exercising ISOs at the start of the year can be a sound strategy.