Home / Science / Social sciences / Demography / Population pyramidTool #755

Population pyramid maker with dependency ratio, median age and sex ratio (free)

Draw a population pyramid from male and female counts by age group, as counts or percentages, with a second year or area as an outline, and get dependency ratios, interpolated median age and sex ratios. Download PNG, SVG or CSV.

Keep it one tap away for everyday use.

Bookmark Population pyramid?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Age, sex
  2. Pyramid
  3. Ratios
  4. PNG, SVG
Nothing is uploadedWorks offline once open

Population by age and sex

% of each total lets you compare populations of different sizes by shape. Old age: the age that splits working age from old age in the dependency ratios (working age starts at 15).

What it does

A population pyramid shows a population’s age and sex structure at a glance: males to the left, females to the right, the youngest at the bottom. A wide base means many children and a growing population; a narrow base and a wide middle mean falling births and an ageing population. This tool draws one from a simple table and works out the numbers that go with it:

  • Dependency ratios: young (0–14) and old (65+, or 60+) per 100 people of working age, and the total;
  • Median age for everyone, males and females, interpolated inside its age group;
  • Sex ratio (males per 100 females), overall and for every age group;
  • the share of the population at old age.

Add a second year or area and it is drawn as an outline over the bars, with its measures side by side, so you can see where the shape has changed.

It works well with the publication plot maker, the sample size and power calculator and the cohort-component projection.

How to use it

  1. Paste or open a table with the columns Age, Male, Female. Age groups can be any width (5-year groups, single years); the last group is treated as open (such as 85+). Rows may run oldest first or youngest first.
  2. Give it a name, such as the year or the place.
  3. Tick Compare with a second year or area and paste the second table. It must use the same age groups.
  4. Choose % of each total to compare shapes of populations of different sizes, or Counts to compare sizes too.
  5. Download the pyramid as PNG or SVG (vector, for editing), the table as CSV, or a full report as an image, PDF or Word file.

Worked example

The made-up town has 86,310 people in 2025 and 77,140 in 2000. In 2025 the median age is 38.6 (males 37.6, females 39.5) against 31.9 in 2000. The young dependency ratio has fallen from 37.1 to 25.9 children per 100 people aged 15–64, while the old-age ratio has risen from 16.3 to 23.6, so the total dependency ratio fell slightly, from 53.4 to 49.5. The share aged 65+ grew from 10.6 % to 15.8 %. The sex ratio is 98.0 males per 100 females, with women outnumbering men more and more at older ages (56 men per 100 women at 85+). On the pyramid, the 2025 bars are narrower than the 2000 outline at the bottom and wider at the top: a classic picture of falling births and longer lives.

Frequently asked questions

How is the median age worked out from groups? Find the group holding the middle person, then assume people are spread evenly within it: median = start of group + (half the total − people in younger groups) ÷ people in the group × group width. If the middle person is in the open group, the tool can only say “at least”.

Why do the dependency ratios say they need groups at 15 and 65? The ratios split the population at those ages, so the table must have groups that start exactly there.

Does a high dependency ratio mean a weak economy? Not by itself. It counts people by age, not who works, studies or cares for others.

Where the numbers come from

  • Formulas only: standard demographic measures (dependency ratios, sex ratio, grouped median by interpolation), as in Preston, Heuveline and Guillot (2001). Example counts are made up.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Sample size and power calculator #32 How many subjects, samples or survey responses do you need? Sample size for comparing two means, paired data, two proportions, or a survey's margin of error, with power curves. Matches R and G*Power. Publication plot maker #27 Paste columns or open a CSV or Excel file and get a clean scientific figure with error bars, sized for a journal column. Download vector SVG or PDF, or PNG at 300 or 600 dpi. Your data stays in your browser. Life table #754 Build a period life table from age-specific death rates or from deaths and population: nMx, nax (half-interval, Coale-Demeny or Andreev-Kingkade), nqx, lx, ndx, nLx, Tx and life expectancy ex, with charts and CSV. Cohort-component projection #756 Project a population by age and sex in 5-year steps from survival ratios (or life-table nLx), age-specific fertility rates, the sex ratio at birth and net migration by age, with projected pyramids, totals, median age and CSV. Fertility rates #757 From births by mother's age and the number of women in each age group, work out age-specific fertility rates, the total fertility rate, gross and net reproduction rates, mean age at childbearing, the general fertility rate and the crude birth rate. 1D Schrödinger solver #923 Choose a textbook potential, type a formula or draw your own, and get the lowest energy levels and wavefunctions of the one-dimensional Schrödinger equation by the matrix (finite-difference) method, with the exact levels alongside for the box, harmonic oscillator, finite well, Morse, linear and Pöschl–Teller potentials.