Buyers and sellers are hurt by the taxing of goods because the costs to them are exceeded by the revenue raised by the government.
Whether a tax is levied on buyers and sellers or not, the impact of a tax on a market outcome remains the same.
Taxes on goods result in markets that include those goods shrinking.
Tax revenue tells how much the public benefits from the tax.
Welfare without a tax - total surplus is the area between supply and demand up to equilibrium.
Welfare with a tax - total surplus is consumer surplus + producer surplus + tax revenue.
Deadweight loss: the fall in total surplus that results from a market distortion, such as the tax.