PurposeThis research study aims to minimize autonomous flight cost and maximize autonomous flight performance of a slung load carrying rotary wing mini unmanned aerial vehicle (i.e. UAV) by stochastically optimizing autonomous flight control system (AFCS) parameters. For minimizing autonomous flight cost and maximizing autonomous flight performance, a stochastic design approach is benefitted over certain parameters (i.e. gains of longitudinal PID controller of a hierarchical autopilot system) meanwhile lower and upper constraints exist on these design parameters.Design/methodology/approachA rotary wing mini UAV is produced in drone Laboratory of Iskenderun Technical University. This rotary wing UAV has three blades main rotor, fuselage, landing gear and tail rotor. It is also able to carry slung loads. AFCS variables (i.e. gains of longitudinal PID controller of hierarchical autopilot system) are stochastically optimized to minimize autonomous flight cost capturing rise time, settling time and overshoot during longitudinal flight and to maximize autonomous flight performance. Found outcomes are applied during composing rotary wing mini UAV autonomous flight simulations.FindingsBy using stochastic optimization of AFCS for rotary wing mini UAVs carrying slung loads over previously mentioned gains longitudinal PID controller when there are lower and upper constraints on these variables, a high autonomous performance having rotary wing mini UAV is obtained.Research limitations/implicationsApproval of Directorate General of Civil Aviation in Republic of Türkiye is essential for real-time rotary wing mini UAV autonomous flights.Practical implicationsStochastic optimization of AFCS for rotary wing mini UAVs carrying slung loads is properly valuable for recovering autonomous flight performance cost of any rotary wing mini UAV.Originality/valueEstablishing a novel procedure for improving autonomous flight performance cost of a rotary wing mini UAV carrying slung loads and introducing a new process performing stochastic optimization of AFCS for rotary wing mini UAVs carrying slung loads meanwhile there exists upper and lower bounds on design variables.