Sum the length and width of your rectangular trash can to obtain your garbage bag width.
Then sum the height of your trash can with a quarter of your garbage bag width and add 4 inches of overhang. That's your garbage bag height.
Read more