Application of stochastic simulation to study of lateral migration of primary hydrocarbon pools near the roof of a collector is considered. It is shown that this approach can be used for point and interval estimations of oil accumulation in a trap and the formation of residual oil saturation