Deductions & credits

How is the gain considered?

With or without closing costs?

I sold last year, my gain was $257k, and after closing costs it was $222k.