This study investigates the effect of various types of trade impediments on Indonesia's trade flows. We categorize tariff measures, non-tariff measures (NTMs), and the lack of trade facilitation measures into at-the-border and behind-the-border barriers. A gravity model is applied to a panel dataset covering 177 of Indonesia's trade partners from 2007 to 2016. This study shows that Indonesia's trade protection remains high, particularly due to the increasing use of NTMs. Furthermore, the lack of trade facilitation also contributes to increasing trade costs, particularly those associated with trade logistics and administration. We also demonstrate why feasible generalized least square is preferable to ordinary least squares and pseudo-Poisson maximum likelihood when estimating a gravity model using panel data that are auto-correlated and contain a large number of zero observations.