A method and apparatus for a composite stringer. A method is used for manufacturing a hollow composite stringer. Foam is formed with a mandrel installed into the foam. A composite material and the foam is laid up onto a tool in a form of a stringer. The composite material and the foam in the form of the stringer is cured to form a cured stringer. The mandrel from the foam is removed to form the hollow composite stringer.