Repayment of Coronavirus-Related Retirement Plan Distributions
If you withdrew funds from your retirement plan due to coronavirus-related issues, you may repay all or part of the amount of the distribution to an eligible retirement plan, provided that you complete the repayment within three years after the date that the distribution was received. If you repay a coronavirus-related distribution, the distribution will be treated as though it were repaid in a direct trustee-to-trustee transfer so that you do not owe federal income tax on the distribution.
If, for example, you receive a coronavirus-related distribution in 2020, you choose to include the distribution amount in income over a 3-year period (2020, 2021, and 2022), and you choose to repay the full amount to an eligible retirement plan in 2022, you may file amended federal income tax returns for 2020 and 2021 to claim a refund of the tax attributable to the amount of the distribution that you included in income for those years, and you will not be required to include any amount in income in 2022.
More details are available on the IRS website.