https://www.businessinsider.com/ev-tax-credit-bill-biden-tesla-gm-2021-5
That's a lot of money off a $40,000 car.
In some cases there might be state incentives too. Right now there is a wait list due to limited funding in California, but that could change. If available, you can get $4500 on a fuel cell vehicle and $2000 on a battery electric
https://cleanvehiclerebate.org/eng/eligible-vehicles