The calculated straight line flying distance from MIA airport to SFO airport is 3,354 miles, or 5,398 kilometers.