First N Digits of e Calculator
Compute the first n digits of Euler's number e — up to 1000 digits — with a per-digit frequency breakdown across the generated digits.
Input
How many digits of e to generate, including the leading "2" (1-1000).
Output
| Digit | Count | Percentage |
|---|---|---|
| No data yet | ||
More ways to use this tool
REST API
curl -X POST https://api.iotools.cloud/v1/tool/first-n-digits-of-e-calculator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"digitCount": "20"
}'Swap in your own key from your account. The tool's fields are the body — no wrapper.
Ask an AI agent
Use the IOTools `first-n-digits-of-e-calculator` tool (First N Digits of e Calculator) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.
Embed widget
<iframe
src="https://iotools.cloud/embed/first-n-digits-of-e-calculator/"
width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
title="First N Digits of e Calculator — iotools.cloud"
sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
allow="clipboard-write"
style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>Drop this into your own page — free, no key required, just a link back.
| Cost per API/MCP call | From 5 credits |
|---|---|
| Need more credits? | View pricing |
Also available with
Guides
The First N Digits of e Calculator generates as many digits of e (Euler's number) as you ask for — up to 1000 — and breaks down how often each digit 0–9 appears across the result.
It's built for students exploring irrational numbers, memory-competition practice, and anyone curious how the digits of e are actually distributed.
How to use it
- Drag the slider to pick how many digits of e you want, from 1 up to 1000 (including the leading "2").
- Read e for the digits themselves, shown with the decimal point in the right place.
- Check Digit frequency for how many times each digit 0–9 appears, and what percentage of the total that is.
Results update automatically as you move the slider. For example, 20 digits gives 2.7182818284590452353, with 2 and 8 each appearing most often (4 times, 20%).
How are the digits computed?
e is defined by the series 1/0! + 1/1! + 1/2! + 1/3! + … — each term shrinks fast because it's divided by a growing factorial. This calculator scales that series up by a large power of ten and sums the terms as exact integers with JavaScript's native BigInt, then reads the digits back off the total. A little extra headroom (20 guard digits) absorbs the tiny rounding that comes from truncating each term, so the requested digits come out exact. No floating-point rounding and no arbitrary-precision decimal library are needed — it runs entirely client-side with no external dependency.
Is there a pattern in e's digits?
No — as far as anyone has ever been able to prove or disprove, e's decimal digits show no repeating pattern and (conjecturally) each digit 0–9 appears with roughly equal frequency in the long run, a property called being "normal" in base 10. Over a small sample like 20 or 50 digits, the frequency table will look uneven simply from randomness — e hasn't been proven normal, but every statistical test run on its known digits so far is consistent with it being so.
Why does the digit count stop at 1000?
The series sum's cost grows with the number of digits requested, and this calculator runs synchronously in your browser on every settings change — capping it at 1000 keeps every recalculation instant, which covers essentially every practical use (memorization practice, classroom demonstrations, spot-checking a longer expansion) without the page ever feeling like it's hung.
Looking for the digits of pi instead? Try the First N Digits of Pi Calculator. For a general-purpose expression calculator, see the Math Evaluator.
Privacy
This calculator runs entirely in your browser. Nothing is uploaded, logged, or stored — the computation happens locally on your device.