[1] Antarctic megadunes are characterized by significant spatial differences in accumulation rate, with higher accumulation on the windward side and near-zero accumulation on the lee side. This leads to spatial differences in physical properties of snow and surface roughness, as well as to the upwind migration of the megadunes. While previous studies agree that megadunes are a result of complex interactions between wind, topography, and snow, it is not clear how they form or why they accumulate on the windward side. Here we use ICESat observations, dimensional analysis, and atmospheric flow modeling to investigate what conditions are responsible for the accumulation patterns and upwind migration of the megadunes. First, we use ICESat data to quantify the pattern of differential surface elevation change across the megadunes. We then use dimensional analysis based on supercritical-flow theory and atmospheric flow modeling to show that the megadunes topography and a stable atmosphere will always lead to upwind dune migration. We show that a combination of persistent katabatic winds, strong stability, and spatial variability in surface roughness is responsible for the accumulation on the upwind slope and hence the upwind migration of the megadunes. We further show that spatial differences in surface roughness are the primary control on accumulation magnitudes and hence dune migration velocity. The dune migration velocity in turn influences the degree of snow-metamorphism and the physical properties of snow that are relevant for paleoclimate records. Our findings pertain to the ongoing evolution of the megadunes, but their genesis remains an open question.