The earnings from the excess contributions have to be reported and taxed in 2024.
On your 2024 tax return, you do not report the excess contribution as it has been withdrawn.
To report the return of excess contributions and earnings, you would create a 2025 form 1099-R with the total distribution (excess plus earnings) in box 1, the earnings in box 2a and code PJ in box 7. You then enter this 1099-R on your tax return, and the earnings will be taxed. When entering this form 1099-R, make sure to indicate that the year on the form is 2025, as this is a replica of the form you will receive for year 2025 in 2026.
When you receive the 2025 form 1099-R with code PJ in box 7 (in 2026) for this withdrawal, there is no further action needed.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"