If your shelves measure 10 inches (25. 4 centimeters) by 5 inches (12. 7 centimeters) and you have 8 shelves in your kitchen that you want to line, you’ll multiply 10 in (25. 4 cm) x 5 in (12. 7 cm) = 50 in (127 cm) and then 50 in (127 cm) x 8 = 400 in (1,016 cm). In this example, you’d need to buy at least 400 square inches (1,016 cm) of liner.

Put a small blob of reusable mounting putty in each corner of the cabinet before placing in spongy or plastic liner to secure it. [9] X Research source