The unsteady inviscid force on cylinders and spheres in subcritical compressible flow is investigated. In the limit of incompressible flow, the unsteady inviscid force on a cylinder or sphere is the so-called added-mass force that is proportional to the product of the mass displaced by the body and the instantaneous acceleration. In compressible flow, the finite acoustic propagation speed means that the unsteady inviscid force arising from an instantaneously applied constant acceleration develops gradually and reaches steady values only for non-dimensional times c(infinity)t/R greater than or similar to 10, where c(infinity) is the freestream speed of sound and R is the radius of the cylinder or sphere. In this limit, an effective added-mass coefficient may be defined. The main conclusion of our study is that the freestream Mach number has a pronounced effect on both the peak value of the unsteady force and the effective added-mass coefficient. At a freestream Mach number of 0.5, the effective added-mass coefficient is about twice as large as the incompressible value for the sphere. Coupled with an impulsive acceleration, the unsteady inviscid force in compressible flow can be more than four times larger than that predicted from incompressible theory. Furthermore, the effect of the ratio of specific heats on the unsteady force becomes more pronounced as the Mach number increases.