Investment banks charge underwriting fees as they take a company public. Underwriting fees are the largest single direct cost associated with an IPO. Based on public filings of 1,175 companies, costs to companies range an average of 4.1% to 7.0% of gross IPO proceeds.