Deductions & credits

if it was your residence and never rented only costs associated with selling are deductible as a sales expense. utilities, water bills, telephone bills, HOA fees, assessments, real estate taxes are not

selling expenses could include (if charged to the seller) 

attorney fees

title charges

sales commission

warranty costs

inspection fee

transfer tax