Courts set the filing fees at $310, plus a fee to the bankruptcy trustee. The bulk of the cost is attorney fees, which could surpass $4,000 if you have a complex case.