You should get a good faith estimate based on the sales price, if the loan officer is accurate & isn't low-balling (which places often will do to get you to think that their closing costs are lower), that will give you an amount that will be pretty close to the end figures.
Free Mortgage Advice & Pre-Approvals (FHA, VA, USDA, Fannie, Freddie, Non-Prime, Construction, Renovation/Rehab, Commercial) since 2002
Located in Southern California and lending in all 50 states