In this story
Macaroni and cheese is older than the United States and far older than the blue box most Americans picture. The earliest recipes for pasta dressed with cheese were written down in medieval Naples and in the kitchens of an English king. A housekeeper in 18th-century England printed the version that reads most like a modern baked casserole. In America the dish passed through Thomas Jefferson’s household, where an enslaved chef trained in Paris cooked it, and then into a cardboard box that sold for 19 cents during the Depression. The chemistry that made the box possible started with a Swiss experiment on melting cheese.
Video: James Hemings, Jefferson's Forgotten Chef, from Tasting History with Max Miller and Colonial Williamsburg
Medieval Naples and a king’s kitchen
Pasta layered with grated cheese appears in the 1300s
Guinness World Records names the Liber de coquina as the earliest macaroni and cheese, a Latin cookbook from the early 14th century linked to the Neapolitan court. Its recipe, titled “de lasanis,” describes flat squares of pasta layered or tossed with grated cheese. Smithsonian, in a piece by hospitality professor Jeffrey Miller, cites Mediterranean food historian Clifford Wright placing the first written recipe at the court of the king of Naples in the 13th century.
England had its own version by 1390. The Forme of Cury, compiled by the master cooks of King Richard II, includes a dish called makerouns. Guinness lists it as another early macaroni and cheese recipe.
None of these used the short tubes now sold as elbow macaroni. History.com notes that both early dishes use flat noodles. The word macaroni covered a wide range of pasta shapes for centuries before it settled on the tube.
Elizabeth Raffald’s baked version
An English housekeeper printed the recipe that reads like today’s casserole
The recipe closest to the modern baked dish comes from Elizabeth Raffald, whose cookbook The Experienced English Housekeeper appeared in 1769. Smithsonian’s article says the first reference in an English-language cookbook likely appeared in Raffald’s book, and Guinness describes it as a detailed recipe.
Raffald’s book circulated on both sides of the Atlantic, and its recipe sits between the medieval layered dishes and the casseroles that followed. Pasta was still an import in much of the English-speaking world. Monticello’s records show that as late as 1810, a Richmond merchant told Jefferson the only macaroni in town came from Italy and cost far more than the domestic pasta he was buying.

James Hemings and the President’s House
An enslaved chef trained in Paris cooked the dish Jefferson is credited with
Thomas Jefferson is often credited with bringing macaroni and cheese to America. Monticello, the foundation that runs his estate, rejects the claim directly: Jefferson did not invent macaroni and cheese, nor did his enslaved chef James Hemings. What the Jefferson household did was serve it at the President’s House, where it was seen as a novelty.
The cook was James Hemings. Monticello records that when Jefferson was appointed to a diplomatic post in France, he brought Hemings with him to study “the art of cookery.” Monticello says Hemings would certainly have learned to make macaroni during that training. A recipe in Jefferson’s handwriting survives, and the foundation believes it was most likely dictated to him by Hemings or by Edith Hern Fossett, another enslaved cook. It calls for six eggs, two wine glasses of milk, two pounds of flour and a little salt, rolled thin, cut into strips, briefly soaked in warm water and dressed with cheese.
A guest left the best-known description. Manasseh Cutler dined at the President’s House in 1802 and wrote of “a pie called macaroni, which appeared to be a rich crust filled with the strillions of onions, or shallots.” A fellow guest told him there were no onions in it at all.
Jefferson’s interest in pasta went beyond the table. The Library of Congress holds the plans for a pasta press that he drew while touring northern Italy in 1787, and Monticello reports that his secretary William Short bought “a mould for making maccaroni” in Naples in 1789. The machine reached Monticello by 1793, but Jefferson later ordered pasta instead, including two boxes from John B. Sartori’s works in Trenton, New Jersey, in 1809. He told a Richmond firm he paid 16 cents a pound for it and ordered 20 pounds more.
The recipe reached ordinary American cooks through print. Monticello points to Mary Randolph’s The Virginia Housewife, a Southern cookbook it cites in an 1838 edition, which includes macaroni dressed with cheese.
The Swiss experiment and the blue box
Processed cheese made a shelf-stable macaroni dinner possible
The industrial version needed a cheese that would melt smoothly and keep. Smithsonian traces it to 1913, when Swiss chemists Walter Gerber and Fritz Stettler tried to extend the shelf life of Emmenthaler with sodium citrate and noticed the treated cheese melted better. In 1916, Chicago cheese salesman James L. Kraft received the first patent for processed cheese, made by heating cheddar scraps and grinding them with sodium phosphate. The U.S. Army bought more than six million pounds for soldiers in World War I.
Boxed macaroni and cheese followed in 1937. Kraft sold it for 19 cents a box, four servings, with the slogan “make a meal for four in nine minutes.” World War II made it a staple. Meat and dairy were rationed, and the Smithsonian piece notes that two boxes of Kraft’s dinner cost only one ration point.
A popular story credits the idea to a St. Louis salesman who rubber-banded packets of grated cheese to boxes of pasta during the Depression. Several sources repeat it, sometimes with the name Grant Leslie, but GrillCheesy could not find a primary record to confirm it, so it stays here as a story.

Why the sauce breaks, and why the box doesn’t
Emulsifying salts keep fat and protein from separating
Anyone who has melted cheddar alone in a pan has seen the problem. A U.S. patent on heat-treated cheese explains it in plain terms: natural cheese tends to separate and expel the fats and oils from the casein matrix when heated to melting. The result is a greasy pool around rubbery clumps.
Calcium is the culprit. The Cheese Professor describes cheese as a three-part network of fat, calcium and casein protein, with calcium acting as the adhesive that binds the proteins together. Emulsifying salts break that bond. The same patent filing explains that sodium citrate replaces calcium ions with sodium ions, which makes the casein more soluble and lets the loosened proteins coat the fat particles instead of letting go of them.
That is the chemistry Gerber and Stettler stumbled on in 1913, the chemistry behind processed American cheese and the reason a powder in a packet can turn glossy in nine minutes. The same salt is now sold to home cooks who want that smoothness from real cheddar or Gruyère, and the Cheese Professor’s test kitchen piece walks through using it.
The older route is the one in the historical recipes. Jefferson’s household dressed the pasta with cheese and served it baked as a “pie,” a dish meant to be cut rather than poured. Both approaches descend from that first idea in a Neapolitan kitchen: pasta, heat and grated cheese.
Mac and cheese meets the sandwich
The dish keeps crossing into handheld territory
Macaroni and cheese and grilled cheese are cousins built from the same few ingredients, and their modern histories share a company. Kraft’s processed cheese, the product that made the boxed dinner possible, also became the slice that many Americans put on bread. Kraft Heinz’s own history says the company introduced Kraft DeLuxe, the first commercially packaged cheese slices, in the 1950s, and that individually wrapped Kraft Singles began appearing in stores in 1965.
Culture magazine credits the wrapping problem to an outside inventor. It reports that in 1956 an engineer named Arnold Nawrocki created a machine that individually wrapped each cheese slice, which pushed Kraft to develop its own packaging. The same emulsifying salts that keep a box of macaroni smooth make those slices melt evenly on a griddle, so the blue box and the yellow square on white bread descend from one 1916 patent.

Frequently asked questions
Who invented macaroni and cheese?
No single person. Guinness World Records points to the early 14th-century Liber de coquina, linked to the court of Naples, and The Forme of Cury of 1390 also includes a version.
Did Thomas Jefferson bring mac and cheese to America?
Monticello says Jefferson did not invent it and neither did his enslaved chef James Hemings, though the dish was served at the President’s House, where it was a novelty. Hemings, trained in Paris, would have cooked it.
When did Kraft Macaroni and Cheese come out?
Kraft debuted boxed macaroni and cheese in 1937 at 19 cents a box.
Why does homemade cheese sauce get greasy?
Heat can separate cheese fat from protein. Starch-thickened sauces or emulsifying salts such as sodium citrate help keep the sauce smooth.
Sources
- Guinness World Records, “First macaroni and cheese”: https://www.guinnessworldrecords.com/world-records/630454-first-macaroni-and-cheese
- Smithsonian, Jeffrey Miller, “How Boxed Mac and Cheese Became a Pantry Staple”: https://www.smithsonianmag.com/innovation/how-boxed-mac-and-cheese-became-pantry-stable-180975023/
- History.com, “Mac and cheese origins”: https://www.history.com/articles/mac-and-cheese-origins-president-popularization
- Monticello, “Macaroni”: https://www.monticello.org/encyclopedia/macaroni
- Monticello, “Jeffersonian Dinners”: https://www.monticello.org/encyclopedia/jeffersonian-dinners
- Library of Congress, “Jefferson’s Pasta Machine” (archived exhibit): https://webarchive.library.unt.edu/web/20130103220125/http://www.loc.gov/exhibits/treasures/tri019.html
- U.S. Patent 11,832,630, “Methods for making heat-treated cheeses”: https://image-ppubs.uspto.gov/dirsearch-public/print/downloadPdf/11832630
- The Cheese Professor, “Why Sodium Citrate is the Secret to the Silkiest Cheese Sauce”: https://cheeseprofessor.com/blog/sodium-citrate-cheese-sauce
- Kraft Heinz, “Kraft Singles history”: https://www.kraftheinz.com/kraft-singles/history
- Culture magazine, “Pure Unprocessed American: How Kraft Processed America”: https://culturecheesemag.com/blog/pure-unprocessed-american-kraft
