On a cash purchase (no loan involved) the buyer's closing costs are fairly reasonable. It's the loan-related costs that run the fees up, such as the 1% loan origination fee. The approx closing costs (including escrow fee, pro-rated property taxes, property insurance, appraisal, home inspection, etc) on a $500k cash purchase would be in the vicinity of $5700. Add any loan fees quoted by your loan officer if a loan is involved.
If you are considering purchasing a home in the San Diego area, let me know what type property (house/condo), number of bedrooms/baths, what areas, and what price range you are interested in and I can send you detailed listings that meet your criteria.
If you are referring to the sale of a property, the seller's closing costs (including owner's title policy, document transfer fee, pro-rated property taxes, escrow fee, home warranty, commission, etc) could be in the vicinity of $39k. Contact me if you would like help with the sale of a property in the San Diego area.