What was bonus depreciation in 2018, 2019, 2020 and 2021?
Generally 100%, for qualified property acquired after September 27, 2017 and placed in service in those years.
Learn more: Read: Bonus depreciation · Watch: what is cost segregation? · Read: what is cost segregation?
Source: IRS Publication 946 (2020)
General information, not tax advice. Tax law changes, and the right answer for your return depends on your facts.