You should make four measurements to get the size of your laptop bag: diagonal, width, length, and depth. The bag's laptop compartment should exceed all four dimensions.  Many bags are for specific laptop sizes: 8-inch, 12-inch, 14-inch, 15.6-inch, and so on. Even if the case is for your laptop size, you should double-check the dimensions of the compartment before purchasing.