Air distance from Madrid, Spain to Mogadishu, Somalia is 4020.7 Miles (6470.6 Kilometers / 3491.5 Nautical Miles).
8 hrs, 20 mins is the flight duration between Madrid and Mogadishu. This is the In-The-Air flight time. You should also add the taxi time, airport wait times and possible delays due to bad weather, etc. for the total flight duration time.