Nana's pecan pie can make it through the TSA quickly even if you can't.

Airport Carpeting
Credit: NurPhoto via Getty Images

Getting through airport security can feel like a game of government-enforced hokey pokey mixed with The Game of Operation. So it's no wonder you might feel a bit hesitant taking a batch of homemade cookies to your loved ones or unsure whether Nana's pecan pie will make it back home with you.

The good news is that food is a far easier item to take through security than liquids, but it doesn't mean that you don't have to take a few precautions before you board with your bundt. Here are the five things to remember before your treats go airborne.

Make Sure Your Food is Solid

While your Aunt Gladys might want to send you home with a jar of her famous jam or your eccentric cousin Frank gave you a bottle of his homemade wine, you can't take anything that isn't entirely solid through the TSA, and that counts for jellies, oils, and soups.

Wrap It Up

Make sure that whatever food items you bring through security are wrapped up in plastic wrap and put in a Tupperware container. Any item that's considered too loosely contained is subject to being confiscated.

Size Matters

Since larger items like a whole coconut layer cake can't be shoved into your carry-on bag like a loaf of banana bread, it will count as your personal item aboard the plane so plan accordingly and consolidate your items. Even the nicest of flight attendants won't let you hold an apple pie on your lap.

Put-ups Can Hold You Up

If you're taking a jar of pickles or any other item that contains a small liquid component, it will most likely require extra screening. If you're planning on taking your grandpa's state fair-winning B&Bs back with you, build in some extra time for security.

Snacks Don't Have Limits

While certain foods like hummus, nut butters, and cheese are limited to certain amounts, dry snacks like trail mix or the plastic bag of puppy chow your mom sent with you don't have any limits as long as you can fit them all in your carry-on bag.