Our World in Data recently put together an interesting chart on this topic. From the article "You want to reduce the carbon footprint of your food? Focus on what you eat, not whether your food is local":
The article provides a specific (extreme) example for someone in the UK getting beef from their neighbor, vs a ranch in Central America:
Transporting food by boat emits 23 grams of CO2eq per tonne of product per kilometer. To transport the 9000 kilometers from Central America to the UK therefore emits 0.207 kilograms CO2eq [9000km * 23g per tonne-kilometer / 1000 / 1000 = 0.207 kg CO2eq per kg]. This is equivalent to 0.35% of the total footprint of the 60 kilograms of CO2eq per kilogram of beef.
If you buy from your local farmer – let’s assume you walk there, and have zero transport emissions – your beef footprint is 59.8 kilograms CO2eq per kilogram [we calculate this as 60kg – 0.2kg]. It makes almost no difference.
Beef is the extreme example. For other animal products, here's the total emissions per kg, and the share that transport makes up:
Product kg CO2eq emissions per kg Transport share
------------------------------------------------------------------
Beef (beef herd) 59.6 0.5%
Lamb & Mutton 24.5 2.0%
Cheese 21.2 0.5%
Beef (dairy herd) 21.1 1.9%
Shrimps (farmed) 11.8 1.7%
Pig Meat 7.2 4.2%
Poultry Meat 6.1 4.9%
Fish (farmed) 5.1 2.0%
Eggs 4.5 2.2%