Leeks and Onions are the most common companion plants to help keep carrot flies away from growing carrots.