The main costs are agent commissions (always negotiable), your share of title and closing fees, your mortgage payoff, and property taxes prorated to the closing date. Any repairs or credits you agree to come out of your proceeds too.
Ask your agent for a seller net sheet before you list. It estimates what you'll walk away with at different prices.