In many cases, what causes your car to spit out gas is in the fuel filler vent not ventilating the fuel.
When the fuel is not properly ventilated, pressure may start to build in the gas tank. This pressure results in the car spitting to reduce the pressure in the tank when the fuel nozzle is removed. As may be expected, your car’s fuel vent tube may gather debris overtime, which will plug up the vent tube and create this problem.
In some cases, you can easily thread a cleaner or metal hanger through the vent tube to clear out any debris. However, don’t be shy about visiting an auto mechanic—they’ll be able to diagnose the issue and get your car properly ventilated in no time!