For the federal electric bike tax credit, you can claim the credit on your tax return for the year you purchased the e-bike. If you bought your e-bike in 2021, you could claim the credit when you file your 2021 federal tax return.