Vampire Apocalypse Calculator
How many nights until everyone is a vampire, from a bite rate and a population.
What this Vampire Apocalypse Calculator does
How many nights until everyone is a vampire, from a bite rate and a population.
Each vampire creates a fixed number of new vampires every night, so the count grows by that factor: one plus the new-per-vampire number. The nights to convert everyone is the logarithm of the population over the starting count, divided by the logarithm of the growth factor, rounded up. Nobody is assumed to die, and the last partial night is counted as a night.
How to use it
Enter Starting vampires, New vampires per vampire per night, Population, then press Run. The page recalculates from the values on screen and prints the rule it applied.
Worked example
Input:
Starting vampires = 1
New vampires per vampire per night = 1
Population = 8000000000
Output:
Nights to convert everyone = 33
Vampires after 10 nights = 1024
Population converted after 20 nights = 0.01%
Rule = each vampire creates the same number of new vampires every night
Why it runs in your browser
This page runs entirely in this tab: no value is posted to a server, no cookie or storage entry is written, and reloading the page discards everything.
Vampire Apocalypse Calculator: How many nights until everyone is a vampire, from a bite rate and a population.
Each vampire creates a fixed number of new vampires every night, so the count grows by that factor: one plus the new-per-vampire number. The nights to convert everyone is the logarithm of the population over the starting count, divided by the logarithm of the growth factor, rounded up. Nobody is assumed to die, and the last partial night is counted as a night.
Worked example: Starting vampires = 1, New vampires per vampire per night = 1, Population = 8000000000 gives Nights to convert everyone = 33; Vampires after 10 nights = 1024; Population converted after 20 nights = 0.01%; Rule = each vampire creates the same number of new vampires every night.
How to use the Vampire Apocalypse Calculator
Enter Starting vampires, New vampires per vampire per night, Population, then press Run. The page recalculates from the values on screen and prints the rule it applied.
This page runs entirely in this tab: no value is posted to a server, no cookie or storage entry is written, and reloading the page discards everything.
- Starting vampires — a number
- New vampires per vampire per night — a number
- Population — a number
The rule this page applies
Each vampire creates a fixed number of new vampires every night, so the count grows by that factor: one plus the new-per-vampire number. The nights to convert everyone is the logarithm of the population over the starting count, divided by the logarithm of the growth factor, rounded up. Nobody is assumed to die, and the last partial night is counted as a night.
Static HTML and JavaScript only — the same source served to every visitor, with no network call and no server-side executor.
- Nights to convert everyone = 33
- Vampires after 10 nights = 1024
- Population converted after 20 nights = 0.01%
- Rule = each vampire creates the same number of new vampires every night
What to Expect
Best for
- Getting the nights to convert everyone quickly
- Checked arithmetic, printed with its rule
- Comparing two sets of inputs
Not ideal for
- Data this page does not carry
- A guarantee about the physical world
- Locales other than English
What this tool keeps
- Your inputs in this tab
- The rule, printed in full
- The same answer on every run
What may need cleanup
- A value the page refuses, which names the field instead of guessing
- A number outside the stated range, which is refused by name
Common errors
- A blank field is refused rather than read as zero
- A zero denominator is refused rather than printed as infinity
- A value outside the formula’s range is refused with the range named
Example use cases
- Checking a figure before you rely on it
- Homework and exam checking
- Comparing two options side by side
Sample input
Starting vampires = 1, New vampires per vampire per night = 1, Population = 8000000000
Sample output
Nights to convert everyone = 33; Vampires after 10 nights = 1024; Population converted after 20 nights = 0.01%; Rule = each vampire creates the same number of new vampires every night
Who this is for
- Anyone checking this figure by hand
- Students and teachers
Frequently asked questions
What does Vampire Apocalypse Calculator do?
How many nights until everyone is a vampire, from a bite rate and a population. It prints nights to convert everyone, vampires after 10 nights, population converted after 20 nights, rule.
How does this page work out the answer?
Each vampire creates a fixed number of new vampires every night, so the count grows by that factor: one plus the new-per-vampire number. The nights to convert everyone is the logarithm of the population over the starting count, divided by the logarithm of the growth factor, rounded up. Nobody is assumed to die, and the last partial night is counted as a night.
Is anything uploaded or stored?
This page runs entirely in this tab: no value is posted to a server, no cookie or storage entry is written, and reloading the page discards everything.
Which inputs does the page read?
It reads Starting vampires, New vampires per vampire per night, Population. Every other value is derived from those.
Why is the answer only about a month?
Because doubling is relentless: a single vampire doubling every night passes eight billion in 33 nights. The growth, not the population, sets the timescale.
Does a slower bite rate help much?
Less than it feels. Halving the rate only lengthens the campaign by the logarithm of two per doubling, so the nights grow slowly while the bite rate falls.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.