A method of multileaf collimator (MLC) leaf positioning in tracking-based adaptive radiotherapy is provided. The method includes determining a radiotherapy beam pattern by transforming a treatment beam plan into radiotherapy beam coordinates, determining a dose discrepancy between the radiotherapy beam pattern and a deliverable MLC aperture, where the dose discrepancy includes a sum of an overdose cost and an underdose cost to a treatment volume, and minimizing the dose discrepancy, where the dose discrepancy minimization provides a determined deliverable MLC aperture for the radiotherapy beam.