Leaking Water Heater and Nonworking Water Well Pump replacements: Capital Improvement added to Basis, or Repair?

Selling inherited house, need to determine basis.

Several years ago, replaced a leaking hot water heater and at different time, water well pump that stopped working. 

Do I add the cost of those replacement to my cost basis in the house to reduce capital gain?

Or are they considered a "repair" and not added to basis?

Researching on internet gives conflicting answers, some say capital improvement others repair.

Please advise.

Thanks!