We investigate the Euclidean path integral formulation of QCD at finite baryon density. We show that the partition function Z can be written as the difference between two sums, each of which defines a partition function with positive weights. We argue that at most points on the phase diagram one will give an exponentially larger contribution than the other. At such points Z can be replaced by a more tractable path integral with positive definite measure, allowing for lattice simulation as well as the application of QCD inequalities. We also propose a test to control the accuracy of approximation in actual Monte Carlo simulations. Our analysis may be applicable to other systems with a sign problem, such as chiral gauge theory.