Considering the importance of cost reduction in the petroleum industry, especially in drilling operations, this study focused on the minimization of the well-path length, for complex well designs, compares the performance of several metaheuristic evolutionary algorithms. Genetic, ant colony, artificial bee colony and harmony search algorithms are evaluated to seek the best performance among them with respect to minimizing well-path length and also minimizing computation time taken to converge toward global optima for two horizontal wellbore cases: (1) a real well offshore Iran; (2) a well-studied complex trajectory with several build and hold sections. A primary aim of the study is to derive less time-consuming algorithms that can be deployed to solve a range of complex well-path design challenges. This has been achieved by identifying flexible control parameters that can be successfully adjusted to tune each algorithm, leading to the most efficient performance (i.e., rapidly locating global optima while consuming minimum computational time), when applied to each well-path case evaluated. The comparative analysis of the results obtained for the two case studies suggests that genetic, artificial bee colony and harmony search algorithms can each be successively tuned with control parameters to achieve those objectives, whereas the ant colony algorithm cannot. Keywords Metaheuristic algorithms • Well-path designing • Well-path optimization • Genetic algorithm • Harmony search • Artificial bee colony List of symbols Definitions of wellbore trajectory variables (modified after Shokir et al. 2004) 1 , 2 , 3 First, second and third hold angles, °