Make two desserts. One completely ordinary, and one that breaks the fewest rules at your table. Put them both out with no cards, no speech and no seating chart of who is allowed what.
That is the whole plan, and it works because it stops trying to build one dessert that satisfies four constraints at once. Something like 2-ingredient banana nice cream is dairy-free, gluten-free, egg-free and has no added sugar, and it is also just frozen bananas blended until they turn into soft serve, which is a real dessert rather than an accommodation.
The rest of this is the social machinery around that, which is the part nobody writes about.
Ask once, before you shop, in a message
The wrong time to find out is at the table. The wrong way is a survey.
One line in the group chat a week ahead does it: "Making dessert, anything I should avoid, allergies or otherwise." That sentence gets you the information without making anyone announce a diagnosis to eleven people, and it gives the quiet ones a chance to reply privately, which is usually where the real answers come from.
Then stop asking. One request for information is hospitality. Three is an interrogation, and it makes the person with the constraint feel like a logistics problem being solved out loud.
An allergy is not a preference, and you should not guess
Everything else in this post is about preferences, rules and medical management. An allergy is a different category and it deserves to be handled differently.
If somebody tells you they have a real allergy, ask them directly what is safe, and believe the answer. Cross-contamination is a genuine thing: a shared cutting board, a scoop that went into the flour, a chocolate chip bag that says "may contain". If you are not confident you can control that in your own kitchen, the correct move is to ask what packaged thing they trust and buy that. Handing someone a sealed box they picked is not a failure of hosting. Poisoning them with a homemade almond crust would be.
Nobody with an allergy has ever been offended by being asked a specific question. Plenty have been made ill by a host who assumed.
What actually collides
At a table of ten, the constraints you will usually hit are dairy, gluten, eggs, nuts, and added sugar. Nuts are the one people get wrong most often when they reach for a "healthy" default, because half the low-sugar dessert internet is almond flour and cashews.
So the dessert that breaks the fewest rules is usually built on fruit, oats or beans rather than nuts.
3-ingredient banana oat cookies are bananas, rolled oats and chocolate chips, at 70 calories a cookie. No eggs, no dairy if the chips are dark, no nuts, and gluten-free if you use certified oats. They are soft and cakey rather than crisp, which is the honest limit of a flourless oat cookie. Use bananas that are properly spotted rather than merely yellow, because an underripe one will not give the dough enough sweetness or enough moisture to hold together, and that is the only way this recipe goes wrong.
Fudgy black bean brownies come out of an 8x8 pan as sixteen squares at 110 calories with 3 grams of fiber, and they are flourless. They do contain eggs and peanut butter, so they are the wrong choice for a nut allergy and a fine choice for a gluten-free guest.
If dairy is not on the list, our roundup of desserts with no added sugar has a wider set to pick from and each one has its numbers attached.
The second dessert should be obvious
The mistake is making both desserts accommodate something.
If every dessert on the table has been engineered, the table reads as a themed event and the person with the restriction becomes the reason for it. That is precisely the thing they were hoping not to be.
So one of the two should be a completely conventional dessert that most of the room will eat without thinking. Pie, a store-bought cake, whatever you would have made anyway. The other one quietly covers the constraints. Nobody has to be told which is which, and the person on the rule gets to take from a table with two options on it rather than one designated plate.
Label ingredients, never virtues
If you label anything, label it with what is in it.
"Oats, banana, dark chocolate" is useful to four different people for four different reasons and it reads as neutral. "Vegan gluten-free sugar-free" is a category announcement, and it does two bad things at once: it tells the room somebody here has a diet, and it makes everyone else taste it suspiciously before the first bite.
A small card on the tray with the ingredient list is the version that helps. It also saves you from being asked eleven times, which is worth something on a night when you are also cooking.
Do not announce it at the table
The moment a host says "I made this one specially for you", the evening changes for whoever that was aimed at.
They are now the reason for a dish, everyone knows it, and somebody at the far end of the table will ask a question about their diet across four people. Even the warmest version of that sentence does it. The warmth is not the problem, the spotlight is.
Put both desserts out. Let people take what they take. If the person you were thinking of notices what you did, they will tell you privately later, and that is the good version of the whole exchange.
Serve it so nobody has to ask
Practical, and it matters more than the recipe.
Anything that needs cutting needs a server standing over it, and the person with a restriction now has to ask a question in public before they can eat. Bars, squares, bites and cookies do not have that problem. Everything gets picked up with two fingers and nobody has to declare anything.
If you are putting out a bark or a board, dark chocolate almond bark breaks into pieces at 195 calories each and holds at room temperature in a cool room for a week, so it can go out early and stay out. It is almonds, so it goes back in the cupboard if there is a nut allergy in the room.
Keep serving utensils separate for anything that matters, and put the dessert covering the restriction at the near end rather than tucked behind the pie.
When you get it wrong
You will occasionally make something and find out at the table that somebody cannot eat it.
Say sorry once, briefly, and move on. Do not run a fifteen minute post-mortem in front of everyone about what you should have used, because that turns a small thing into the evening's topic and makes the guest manage your feelings about their diet.
The recovery is fruit, plain yogurt, or whatever is in the fridge, offered quietly. Most people with a constraint have handled this a hundred times and would much rather be handed a bowl of berries than an apology speech.
The short version
Ask once, in a message, a week ahead. Take allergies literally and ask what is safe. Make two desserts, one ordinary and one that avoids the most common collisions. Label what is in things, not what they are free from. Put them both out and say nothing.
If you want a starting list with the numbers on it, our 12 desserts to bring to a party is built for travel and holds up just as well on a table you are hosting yourself.