The cheapest taxi fare from St Andrews to the airport in Edinburgh starts from just £130.
Traveling by public transport; Bus Train and Tram will cost aproximately £22 per person. Consider the small price difference for comfort and time if you are a group of people traveling.