If you plan to cook hamburgers over your July 4th holiday weekend, don’t fire up the grill until you know the right way to safely shop for, handle, and prepare ground beef. You want to have a good time and minimize your risk of getting food poisoning.

Ground beef is a significant source of foodborne illness, and summer is a risky time. Outbreaks caused by beef contaminated with the deadly bacteria E. coli O157:H7 peak in July, according to the Centers for Disease Control and Prevention, and beef, especially ground beef, is the top cause.

“The odds of ground beef being contaminated may be higher than with steaks or roasts because of the way it is produced,” says James E. Rogers, Ph.D., director of food safety research and testing for Consumer Reports. “Meat trimmings used to make it often come from multiple cattle, and grinding can spread bacteria from just a few pieces of meat to the entire batch.”

You can reduce your chances of getting ill—yet still enjoy a tasty burger—by following this advice at each step of your burger’s journey from the supermarket to your plate.   

People enjoying a summer cookout

Before You Shop for Ground Beef

Take your fridge’s temp. Bacteria that can make you sick grow very slowly in ground beef (and other foods) stored at temperatures below 40° F, but they multiply rapidly at temperatures between 40° and 140° F. “Keep your fridge at 37° F,” Rogers says. To make sure temperatures stay in a safe range, use a refrigerator thermometer, which you can buy for $10 or less.

Time your shopping trip. Raw ground beef should be stored in the refrigerator for no longer than two days, so if you don’t want to freeze your meat before grilling your burgers, time your grocery shopping trip accordingly.

Pack a cooler. When you head to the market, bring along a cooler or an insulated bag with an ice pack to keep beef (and other perishable foods) cold if you’ll be making other stops after the market, or if you’ll be traveling more than a short distance from the store to home. And even if you are going straight home, consider taking this step just to be on the safe side if it’s an especially hot day. 

At the Supermarket

Shop for meat last. This minimizes the time it spends unrefrigerated.

Reach into the back of the cooler. Choose a package of meat that feels cold and is securely wrapped. If possible, place the ground beef package securely inside a plastic bag in your cart in case any juices from the meat leak out and contaminate other foods.

Pack meat separately. When checking out, bag ground beef (or any raw meat) separately from other foods to avoid any bacterial cross-contamination.

When Making the Burgers

Don’t get ahead of yourself. Keep the ground beef refrigerated until you are ready to form it into patties. If you want to form the patties ahead of time, immediately put them back into the refrigerator until you are all set to begin grilling. In fact, chilling the patties in the fridge for at least 30 minutes before cooking helps them retain their shape when they’re sizzling on the grill, says Claudia Gallo, a professional chef and a member of CR’s food-testing team.

Wash up. Don’t touch anything in your kitchen after you’ve handled raw meat until you have thoroughly washed your hands with hot, soapy water. Immediately clean counters and any utensils you used to avoid spreading bacteria. Sanitize plastic cutting boards by washing them in the dishwasher.  

When You Cook Hamburgers

Season at the last minute. Seasoning a burger too far in advance pulls liquid from the meat, producing a dry burger, Gallo notes. Just before cooking, sprinkle salt, pepper, and any other seasonings you like on one side of each burger and place that side down on the grill first. As they’re cooking, season the other side before flipping to finish them off.

Take a hands-off approach. “When you cook hamburgers, never push down because you’ll be draining out flavorful juices,” Gallo advises. Let the cooked patties rest on a clean platter for about 5 minutes to let the juices redistribute.

Use a meat thermometer. To be sure you destroy bacteria that can make you sick, cook hamburgers to 160° F. Burgers served rare or medium rare are riskier because they aren’t cooked long enough to hit that safety point.

Double up on your serving utensils. Don’t put cooked burgers back on the same platter or plate you used to carry the raw meat to the grill. And be careful with forks, spatulas, and other utensils that you may have used on the raw meat. “Many people are careful to use different plates but forget about cross-contamination from utensils,” Rogers says.  

After the Feast

Clean up in a timely way. Don’t let a platter of cooked burgers sit out for more than 2 hours, or for more than 1 hour if the outside temperature is above 90° F. Toss any burgers (or other food) that have been out longer.

Store leftovers correctly. Cooked burgers can be safely refrigerated for about three to four days and can be frozen for up to four months.

Reheat properly. When reheating fully cooked patties, make sure the internal temperature reaches 165° F.  

Food Safety 101

Bacteria is a serious threat when it comes to food preparation. On the 'Consumer 101' TV show, host Jack Rico finds out how to cook a great meal without making your family and friends sick.