For the stress-strain relation of differently shaped rubber blocks submitted to compression, an equation of general applicability is deduced, starting from the idea that compression work must be done also against the tension arising through the increase of the free surface. In this equation the stress is not a function of the compression ratio only, but of the ratio of the fixed to the free surface as well. Besides the shear modulus of the block's substance, this equation involves a single empirical constant which changes only slightly with the shape of the block's cross section. The validity of the equation obtained was tested by measurements performed by the authors on cylinders as well as by data on quadratic prisms published in previous literature. The calculated values are in good agreement with the experimental data within the limits of experimental error.