This study investigated the dosimetric impact of uncompensated motion and motion compensation with dynamic multileaf collimator (DMLC) tracking for prostate intensity modulated arc therapy. Two treatment approaches were investigated; a conventional approach with a uniform radiation dose to the target volume and an intraprostatic lesion (IPL) boosted approach with an increased dose to a subvolume of the prostate. The impact on plan quality of optimizations with a leaf position constraint, which limited the distance between neighbouring adjacent MLC leaves, was also investigated. Deliveries were done with and without DMLC tracking on a linear acceleration with a high-resolution MLC. A cylindrical phantom containing two orthogonal diode arrays was used for dosimetry. A motion platform reproduced six patient-derived prostate motion traces, with the average displacement ranging from 1.0 to 8.9 mm during the first 75 s. A research DMLC tracking system was used for real-time motion compensation with optical monitoring for position input. The gamma index was used for evaluation, with measurements with a static phantom or the planned dose as reference, using 2% and 2 mm gamma criteria. The average pass rate with DMLC tracking was 99.9% (range 98.7-100%, measurement as reference), whereas the pass rate for untracked deliveries decreased distinctly as the average displacement increased, with an average pass rate of 61.3% (range 32.7-99.3%). Dose-volume histograms showed that DMLC tracking maintained the planned dose distributions in the presence of motion whereas traces with >3 mm average displacement caused clear plan degradation for untracked deliveries. The dose to the rectum and bladder had an evident dependence on the motion direction and amplitude for untracked deliveries, and the dose to the rectum was slightly increased for IPL boosted plans compared to conventional plans for anterior motion with large amplitude. In conclusion, optimization using a leaf position constraint had minimal dosimetric effect, DMLC tracking improved the target and normal tissue dose distributions compared to no tracking for target motion >3 mm, with the DMLC tracking distributions showing generally good agreement between the planned and delivered doses.