In this paper, we consider a single-server queueing system with no waiting space. Customers arrive according to a Poisson process with rate λ. An arriving customer receives immediate service if he finds the server idle; otherwise he will retry for service after a certain amount of time. Blocked customers will repeatedly retry for service until they get served. The times between consecutive attempts are assumed to be independently distributed with common distribution function T(·). The service times of customers are drawn from a common distribution function B(·). We show that the number of customers in the system in steady-state can be decomposed into two independent random variables: the number of customers in the corresponding ordinary M/G/1 queue (with unlimited waiting space) and the number of customers in the retrial queue given that the server is idle. Applying this decomposition property, an approximation method for the calculation of the steady-state queue size distribution is proposed and some properties of the approximation are discussed. It is demonstrated through numerical results that the approximation works very well for models of practical interest.