I develop and implement a methodology for obtaining plant-level estimates of product quality from revenue and physical output data. Intuitively, firms that sell large quantities of output conditional on price are classified as high quality producers. I use this method to decompose cross-plant variation in price and export status into a quality and an efficiency margin. The empirical results show that prices are increasing in quality and decreasing in efficiency. However, selection into exporting is driven mainly by quality. The finding that changes in quality and efficiency have different impact on the firm's export decision is shown to be inconsistent with the traditional iceberg trade cost formulation and points to the importance of per unit transport costs.