We develop a method for decomposing countries' observed export prices into quality versus qualityadjusted-price components using information contained in their trade balances.Holding observed export prices constant, countries with surpluses are inferred to offer higher quality than countries running deficits.Our method accounts for variation in trade balances induced by horizontal and vertical differentiation.We use our method to examine manufacturing product quality among the world's top exporters from 1989 to 2003.We find that the initial quality gap between high-and low-income countries is smaller than their initial income gap, and that the former narrows considerably faster over time.