Hotel Cost Calculator Formula

Understand the math behind the hotel cost calculator. Each variable explained with a worked example.

Formulas Used

Total Hotel Cost

total_cost = room_subtotal + tax_total + fees_total

True Cost Per Night

avg_per_night = (room_subtotal + tax_total + fees_total) / nights

Total Taxes & Fees

taxes_fees = tax_total + fees_total

Variables

VariableDescriptionDefault
nightly_rateNightly Rate(USD)159
nightsNumber of Nights3
tax_pctHotel Tax Rate(%)14
resort_feeDaily Resort/Amenity Fee(USD)25
parking_dailyDaily Parking Fee(USD)0
room_subtotalDerived value= nightly_rate * nightscalculated
tax_totalDerived value= room_subtotal * tax_pct / 100calculated
fees_totalDerived value= (resort_fee + parking_daily) * nightscalculated

How It Works

How Hotel Costs Add Up

The advertised nightly rate is just the start. Taxes and fees can add 20-40% to the total.

Formula

Total = (Nightly Rate x Nights) x (1 + Tax%) + (Resort Fee + Parking) x Nights

Worked Example

3 nights at $159/night, 14% tax, $25 resort fee, no parking.

nightly_rate = 159nights = 3tax_pct = 14resort_fee = 25parking_daily = 0
  1. 01Room subtotal = $159 x 3 = $477.00
  2. 02Taxes = $477 x 14% = $66.78
  3. 03Resort fees = $25 x 3 = $75.00
  4. 04Total = $477 + $66.78 + $75 = $618.78
  5. 05True per-night cost = $618.78 / 3 = $206.26

Ready to run the numbers?

Open Hotel Cost Calculator