To calculate the size of your carry-on bag, measure the length, height, and depth (or width) of your bag. You can add the three numbers together to find the total linear inches. For example, a bag with a length of 20 inches, width of 12 inches, and depth of 6 inches would be 20+12+6 = 38 linear inches.