Various applications such as automotive catalysts, photocatalysis and sensors rely on thin coatings with high active surface area. The development of new and improved coatings requires in-depth understanding of the film morphology and texture. Especially the film porosity is a key parameter to identify structure-property relationships in applications. However, an accurate porosity determination of thin porous coatings is a challenging. In this contribution we present and discuss a new approach for determining the porosity of films by x-rays at SEM.