What probabilities are calculated
For each non-land card in your deck, the calculator determines:- Playability probability: The chance you’ll have drawn the card AND have sufficient mana to cast it by a specific turn
- Turn-by-turn analysis: Separate calculations for turns 1 through 8
- Mana availability: Whether you have enough total mana AND the correct colors
- Fetch land interactions: How fetch lands can provide necessary colored mana
Land cards do not show probability percentages. Instead, they display mana symbol icons indicating which colors of mana they produce.
How to interpret percentages
The percentage values in each turn column represent:- You have a 23.4% chance of being able to play this card by turn 3
- This accounts for both drawing the card and having the mana to cast it
Reading the results
| Percentage | Interpretation |
|---|---|
| 0% | Impossible to play by this turn (not enough mana sources or turns) |
| 1-25% | Low probability - may need more mana sources or card draw |
| 26-50% | Moderate probability - reasonable but not reliable |
| 51-75% | Good probability - likely to be playable |
| 76-100% | High probability - very likely to be playable |
Turn-by-turn analysis
The calculator evaluates turns 1 through 8:Starting hand and draws
Thedraws parameter is calculated as:
DeckList.js:154:
Playability conditions
For a card to be considered playable on a given turn, all conditions must be met:-
Turn condition: Enough turns have elapsed to generate the required mana
-
Mana condition: Enough total lands in deck to produce required mana
-
Color condition: Sufficient sources of each required color
-
Includes condition: The card must be in the deck
If any of these conditions fails, the calculator returns 0% probability for that card.
Real-time updates
Probabilities recalculate automatically when:- You add or remove cards from your deck
- You change the quantity of any card
- You modify your mana base
- The
calculatingstate flag is toggled
Calculation trigger
FromProbabilityCell.js:44-50:
Loading states
While calculating, each cell displays:- A circular progress indicator
- Color-coded spinner based on the card’s primary color
- The loading state prevents multiple simultaneous calculations
The API endpoint
All probability calculations are handled by a backend API:POST /api/alg
Request body:Alg.js:5-11:
When probabilities show empty
Probability cells will be empty (showing only mana icons) for:Land cards
FromProbabilityCell.js:38-42:
- Single color lands: That color’s mana symbol
- Dual lands: Combined symbol (e.g., “UB” for Underground Sea)
- Fetch lands: “F” indicator
- Colorless lands: “C” symbol
- Five-color lands: “BGRUW” symbol
Cards without mana costs
FromArithmaticHelpers.js:38:
manaCost property will not have probabilities calculated.
Calculation methodology
The probability calculator uses hypergeometric distribution and Vandermonde’s identity:- Parse card cost: Convert mana cost string (e.g., "") into structured requirements
- Categorize mana sources: Group lands by what colors they can produce
- Handle fetch lands: Account for lands that can search for specific land types
- Generate hand combinations: Calculate all possible hands that could play the card
- Apply hypergeometric distribution: Determine probability of drawing each viable hand
- Aggregate probabilities: Sum probabilities across all playable hand combinations
Technical details: Fetch land integration
Technical details: Fetch land integration
Fetch lands are handled specially in the algorithm. When a fetch land is drawn, the calculator:
- Identifies which lands can be fetched based on
fetchOptions(e.g., “Plains,Island”) - Determines what mana colors those fetchable lands produce
- Treats the fetch land as a virtual source of those colors
- Adjusts the card’s effective mana cost to account for fetched mana
- Recalculates viable hand combinations with the fetch land’s flexibility
Related pages
Deck building
Learn about the deck building interface
Mana optimization
Optimize your mana base for consistent casting
