Hexagonal Number Calculator
Get the nth hexagonal number.
Result
How it is calculated
Enter the position n in the sequence (a whole number, 1 or more). The tool computes H(n) = n × (2n − 1), which is the same as 2n² − n. Both factors are plain integers, so the answer is exact and shown with thousands separators. Positions that are zero, negative or not whole numbers (such as 2.5) return no result, because a hexagonal number only exists for n = 1, 2, 3 and so on. Very large n works too, since the result is just a product, but it grows quickly: roughly twice n squared.
Worked example
Take n = 12. First work out the second factor: 2 × 12 − 1 = 23. Then multiply by n: 12 × 23 = 276. So the 12th hexagonal number is 276. As a check, 276 is also the 23rd triangular number, because 23 × 24 / 2 = 276, which is what you get whenever you plug 2n − 1 into the triangular formula.
Common mistakes
- Counting from zero: the first hexagonal number is H(1) = 1, so n = 6 gives 66, not the value you would get by treating the list as starting at index 0.
- Using the formula for a different polygon, for example n(n + 1)/2 (triangular) or n² (square), when the task asks for hexagonal numbers.
- Typing a fraction or zero for n and expecting a value; only positive whole positions are accepted.
- Forgetting the brackets and computing n × 2n − 1 instead of n × (2n − 1), which is off by n − 1.
About this calculator
A hexagonal number counts the dots needed to build nested hexagonal patterns, given by the formula n(2n−1): 1, 6, 15, 28, 45, and so on. Hexagonal numbers belong to the broader family of figurate (or polygonal) numbers, alongside triangular and square numbers, and they hold a neat structural secret — every hexagonal number is also a triangular number, specifically every other one in the triangular sequence (the 1st, 3rd, 5th... triangular numbers).
Number theory courses use hexagonal numbers to illustrate how figurate-number identities connect seemingly unrelated sequences, and they surface famously in the theory of perfect numbers: every even perfect number (6, 28, 496...) is also a hexagonal number, a fact tied back to Euclid’s formula for even perfect numbers. Beyond pure math, the same n(2n−1) packing logic describes hexagonal close-packing arrangements used when counting objects arranged in expanding hexagonal rings, such as cells around a honeycomb center.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments