How are gains from a business sale taxed?

Can someone please explain how taxes on the sale of an LLC works? I’ve heard the proceeds are taxed as ordinary income, but also that the goodwill is taxed as a capital gain?

Am I correct is saying that income means that on a multi-million dollar sale that you would be paying 35%-50% in taxes depending on the state?