Retirement tax questions

I tried adding the fees to the cost basis but it then reduced the net profit. Can I just spread the fees over the tickets that sold at a loss intead?