The recent development in linear accelerator control systems, named volumetric-modulated arc therapy (VMAT), has generated significant interest in arc-based intensity-modulated radiation therapy (IMRT). The VMAT delivery technique features simultaneous changes in dose rate, gantry angle and gantry rotation speed as well as multi-leaf collimator (MLC) leaf positions while radiation is on. In this paper, we describe a generalized VMAT planning tool that is designed to take full advantage of the capabilities of the new linac control systems. The algorithm incorporates all of the MLC delivery constraints such as restrictions on MLC leaf interdigitation and the MLC leaf velocity constraints. A key feature of the algorithm is that it is able to plan for both single- and multiple-arc deliveries. Compared to conventional step-and-shoot IMRT plans, our VMAT plans created using this tool can achieve similar or better plan quality with less MU and better delivery efficiency. The accuracy of the obtained VMAT plans is also demonstrated through plan verifications performed on an Elekta Synergy linear accelerator equipped with a conventional MLC of 1 cm leaf width using a PreciseBeam VMAT linac control system.