Most airlines will base their size limits on the total size of your bag, not just the weight in pounds like checked bags. Some airlines only give a guidance on “linear inches,” i.e. the sum of the length + width + depth of your bag. A limit of 40 linear inches could also be expressed as 18 x 14 x 8 inches.