Skip to content
YGO Draw Theory

How the math works

What each result counts, how the simulations work, which decklist formats you can import, and what the tool doesn’t model.

Exact probabilities

A shuffled deck makes every set of n cards equally likely. An exact result counts the hands that satisfy your question and divides by the number of possible hands, C(N, n). Cards are drawn without replacement, which makes this the hypergeometric distribution.

Reference case: 3 copies in a 40-card deck, 5-card hand. P(at least one) = 1 − C(37,5)/C(40,5) = 1 − 435,897/658,008 = 667/1,976 ≈ 33.76%.

All counting uses exact integer arithmetic; percentages are rounded only for display. Results marked Exact are exact under the stated assumptions (a uniformly shuffled Main Deck, the stated number of cards seen).

Conditions & tags

Tags are your labels, and they depend on the deck. A card that starts your combo in one list can be dead in another. A card can have several tags.

A rule counts the cards in hand that match its target. A target can list several tags and cards; a copy that matches more than one of them is still one card and is counted once.

By default, one card may satisfy several rules at once: a card tagged both Starter and Extender satisfies “at least 1 Starter AND at least 1 Extender” on its own. If you need different cards for each requirement, turn on “each met by a different card” for that group; the result then requires an assignment of distinct copies to requirements.

Rules can count copies (two copies of the same card count as two) or different cards (they count as one). Groups combine rules with AND, OR, and NOT, and every condition is shown back to you as a sentence.

Mark a tag as a brick (also called a garnet) for cards you play but don’t want to open. Tags named Brick or Garnet always count as bricks. The condition builder can then add “no bricks” in one click, and the deck size tool in Analyze compares sizes with your condition and a brick limit together. More cards make a brick less likely but also make the cards you want less likely, so the tool names a best size when the chance peaks between the smallest and largest sizes it shows.

For complex conditions the exact engine uses a multivariate hypergeometric model. If the number of distinct hand patterns it would need to track is too large, it tells you and offers a simulation instead. It doesn’t switch to a simulation on its own.

Tags that fill themselves in

A tag can have filters: every card that fits is in the tag, including cards you add to the deck later. Use one for the second half of a combo, like “any Swordsoul card or Wyrm”. Filters read the card’s name, card type, attribute, monster type, Tuner or Normal and so on, Spell or Trap type, Level, ATK and DEF. Everything inside one filter has to fit; add a second filter with “or” for cards that fit something else.

The name filter also reads card text. Summoned Skull counts as an “Archfiend” card because its text says it is always treated as one, and Diffusion Wave-Motion doesn’t count as a “Fusion” card because its text says so. Names given by an effect, such as a monster that changes its name on the field, don’t count, since the odds are about cards in your hand.

Your picks win. Add a card the filters miss, or take out one they shouldn’t find, in the tag editor or from the card list. A “?” ATK or DEF fits no range, and a short name can match inside a longer word, so check the list of matched cards before you save.

Combo lists

The Combos tab takes every combo your deck can open, one per row, and counts the hands that have at least one. A row is one or more slots, and each slot takes cards, tags or both: “Mo Ye” + “any Swordsoul card or Wyrm”.

Each slot needs a different copy. A second Mo Ye counts as its own partner when it’s on the partner’s list. A second Ecclesia doesn’t, unless you list it.

  • Odds is the chance of opening that combo, whatever else is in the hand.
  • Adds is what the row adds to the rows above it. The column adds up to the total, and it changes with the order.
  • Only this is how often it’s your only combo: what you lose by cutting the row. A row with 0% is already covered by the others.

You can also see how often a combo comes with at least one card of a tag, such as a hand trap. A combo list is saved as a condition, so Analyze, Simulate and Compare can use it. Normal Summons, costs and once-per-turn limits aren’t checked, so list only hands you can really play.

Opening hand vs. turn draws

The opening hand is 5 cards. Going first, you do not draw on your first turn, so 5 cards are seen by your first Main Phase. Going second, you draw once before your first Main Phase, so 6 cards are seen. Results always state which of these they measure; extra draws from card effects are only included when you add them explicitly.

Most common hands

Analyze lists the hands you open most often, counted exactly. Grouped by tag, every card belongs to one group, named after all of the tags you chose: a card tagged Starter and Searcher is “Starter + Searcher”. The groups never overlap, so the chances of all hands add up to 100%.

Down to the exact cards, no hand is common. In a 40-card deck the most likely hand is usually any five different cards you play three copies of, and each of those comes up about once in 2,708 games.

Simulations

A simulation deals many random hands and reports the share that pass. It is an Estimate: every result shows the number of hands dealt, the random seed, and a 95% confidence interval (Wilson score), which is the range the true value is likely to be in. Re-running with the same seed and configuration reproduces the result exactly.

Hands are dealt uniformly without replacement (a seeded Fisher–Yates shuffle). Heavy runs execute off the main thread so the page stays responsive, and can be cancelled.

What isn’t modeled

Searchers are not extra copies. A card that searches another has costs, activation conditions, once-per-turn limits, and may find a card already in your hand. Tag searchers as you see fit, but read results as “opened a card tagged X”, not “had access to X”.

A hand without a tagged Starter can still make a play. The result only measures the condition you wrote. Card effects and full duels aren’t simulated, and opening-hand odds are only one part of how good a deck is.

Deck list formats

YDK is the file format most deck builders export: one passcode per line, one line per copy, under #main, #extra and !side.

#created by YGO Draw Theory
#main
14558127
14558127
26077387
#extra
86066372
!side
94145021

YDKE is a whole deck in one link, starting with ydke://. Simulators and deck sites copy it: on a YGOPRODeck deck page it’s under More…, then YDKE. Paste it where you’d paste a list. Export can copy one too. Links to the deck pages themselves can’t be opened from here.

Text list is easier to read and edit by hand, and it keeps your tags:

# Lines starting with # or // are comments.
Main Deck
3 Ash Blossom & Joyous Spring [Hand trap, Defensive]
3x Sky Striker Ace - Raye [Starter]
Infinite Impermanence x2
1 14558127            ← a bare passcode also works
Extra Deck
1 Accesscode Talker
Side Deck
2 Droll & Lock Bird
  • Section headers: “Main”, “Extra”, “Side” (optionally “Deck”, a count, and a colon).
  • Quantities: “3”, “3x”, a trailing “x3”, or none (one copy).
  • Square brackets at the end of a line assign tags; unknown tags are created, and a tag named Brick or Garnet counts as a brick.
  • For a tag with filters, the list keeps the cards in it. The filters themselves stay with the deck.
  • Names must match exactly; unknown names and passcodes are listed with their line numbers.
  • Alternate artworks of the same card are merged into one entry.
  • Extra Deck monsters listed in the Main Deck are moved, with a warning.

Card data & legality

Card data and artwork come from YGOPRODeck and are re-hosted by this site. Deck checks cover construction rules: 40–60 Main Deck cards, up to 15 Extra and 15 Side Deck cards, at most 3 copies of a card. They are not a format legality verdict. Banlist statuses come from YGOPRODeck data captured when each card was added and may be out of date; confirm against the official Forbidden & Limited List before an event.