Bacterial polyesters such as polyhydroxyalkanoates (PHAs) are of great interest for a large number of applications both because of their properties and because they come from renewable resources, despite having a higher cost than commodity polymers. Their foaming—although it presents some difficulties—could be an option to increase their competitiveness. In this work, two strategies have been studied to enhance the poly(3-hydoxybutyrate-co-4-hydroxybutyrate) (P3HB4HB) foamability by extrusion foaming. The effect of the cooling system (water-quenching or air-cooling), chain extender (CE) addition and chemical blowing agent (CBA) amount were evaluated. Density, cellular morphology, mechanical and thermal properties were studied. Optimal density reduction was achieved with use of CE and 3–4 wt.% of CBA masterbatch. The most effective strategy on density reduction was the addition of CE, while the water quenching had only a slight influence on the samples in which CE was not present. CE addition decreased the viscosity and the degradation rate of the polymer, thus leading to lighter foams with larger cells but with equal or even slightly better resistance to compressive and tensile stress, in general termsPostprint (author's final draft