With both gas and airline ticket prices skyrocketing, it may be hard to tell whether driving or flying is the better value (in terms of both money and time). This "Fly or Drive Calculator" can help you wisely plan your next trip.

BeFrugal.com's Fly or Drive Calculator uses cost data from AAA and things like necessary overnight stops for the driving time and cost estimate. The flying estimate takes into account travel time to the airport and other associated times and costs. You can fine-tune the details for both modes of travel in the calculator to get more precise results.

There are intangible costs and other factors to consider when deciding how to travel, of course, such as how well your children behave in the car and the professional value of each vacation hour to you. As a general rule of thumb, though, personal finance app Mint says that car drives that are four hours or under in length are usually more cost-effective than flying.

Find out whether you should drive or fly for your next vacation (in the continental US) with the calculator linked below. Photos remixed from originals by Serge Melki and Paul Everett.