As a small business, you may be able to write off the state and local taxes in the year you paid them, even if the taxes are from a previous year. However, you can’t deduct any federal taxes that you paid for a prior year.