How does a Gun Silencer Work?

A gun silencer works very similar to a car muffler. The expanding gases exiting a barrel are what cause all the noise. A silencer has baffles inside which give the gases room to expand and expel their energy so the noise is dampened.