The invention relates to a rectangular building element (1) which comprises a surface board (10) forming a first facing surface (2) located oppositely to a second facing surface (3) of the building element (1); a first edge surface (4) located oppositely to a second edge surface; a third edge surface (6) located oppositely to a fourth edge surface; and heat insulation material between the first facing surface (2) and the second facing surface (3), the heat insulation material comprising building foam (8a); and a plurality of rectangular, longitudinal support structures (9) arranged at a distance (L2) from each other, whose top surfaces (11) are arranged at a distance (LI) from a bottom surface of the surface board (10) by means of the building foam (8a). For the building element (1) to be able to effectively dampen sound originating from various sources, there is sand between adjacent support structures (9), which forms soundproofing adjacent layers of sand (8b) between the support structures (9), the layers being supported from below by the building foam (8a) and covered by the building foam (8a).