I-beams are usually the cheaper option.
They are rolled in large quantities and deliver strong bending performance at a lower weight. Box beams, especially custom welded boxes, tend to cost more per foot because they use more steel and require more fabrication.
