magic numbers
magic numbers is the plural of magic number.
Meaning of magic number
Noun
magic number (plural magic numbers)
- The number of neutrons or protons in nuclei which are required to fill the major quantum shells, and thus produce exceptionally stable nuclei: 2, 8, 20, 28, 50, 82 and 126.
- The sum of one and the wins by one team and losses by an opponent necessary for the team to ensure the opponent cannot catch it in the standings by the end of the regular season. In Major League Baseball, with a regular season of 162 games, the magic number M is calculated as M = 163 − W₁ − L₂, in which W₁ is the leading team's current win total, and L₂ is the opponent's current loss total. A magic number of 0 indicates that the trailing team cannot catch the leading team.
- The lowest such number that assures a team a playoff berth.
- A number which is manually entered into source code, rather than defined somewhere as a named constant; especially one which is arbitrary or lacks explanation.
- We replaced the magic number 31 with a constant called MAX_DAYS_IN_MONTH.
- A sentinel value which cannot occur in normal use, typically used as a placeholder (e.g. a fictitious date such as 2000-02-32).
- A hash code, such as those used by some webmail servers to keep track of sessions.
Questions about magic numbers
- What is magic numbers the plural of?
- Magic numbers is the plural of magic number.
Words near magic numbers in the dictionary
Source and license
Adapted from Wiktionary: magic numbers (page history and authors); magic number (page history and authors). Text available under the Creative Commons Attribution-ShareAlike 4.0 license. Word.ws reformatted the entry and added links. Wiktionary data of 2026-09-02.
Last updated:
Cite this entry: “magic numbers.” Word.ws, https://word.ws/magic_numbers. Based on Wiktionary, CC BY-SA 4.0.
