In a large bowl, combine the ground beef, salt, black pepper, garlic powder, and onion powder (if using). Mix gently to combine, being careful not to overwork the meat.
Divide the mixture into 4 equal portions and shape each portion into a patty about 1/2 inch (1.25 cm) thick. Make a slight indentation in the center of each patty to prevent it from puffing up during cooking.
Preheat a grill or skillet over medium-high heat.
Cook the patties for about 4-5 minutes per side for medium-rare, or until they reach your desired level of doneness.
If using cheese, place a slice on each patty during the last minute of cooking, covering the grill or skillet to help melt the cheese.
While the patties are cooking, lightly toast the hamburger buns on the grill or in a toaster.
Spread ketchup, mustard, and mayonnaise on the bottom halves of the toasted buns.
Place a cooked patty on each bun.
Top the patties with lettuce, tomato slices, onion slices, and pickles.
Cover with the top halves of the buns.
Enjoy your meal!