Why the share count is the hardest part of earnings per share
Earnings per share looks like the simplest ratio in finance: profit divided by shares. It is printed at the bottom of every income statement of a listed company, it drives the price-to-earnings ratio, and it appears in nearly every analyst note and bonus plan. Yet the denominator causes more errors than the numerator. Companies issue new shares, buy shares back, run employee schemes and pay bonus issues during the year, so there is no single “number of shares” to divide by. Pick the wrong one and EPS can be off by ten per cent or more.
This free first lesson is for accounting and finance students preparing for exams on IAS 33 or ASC 260, junior accountants who have been handed the EPS note for the first time, analysts who want to rebuild a company's EPS from its share movements, and investors who want to understand why the EPS in an annual report is not simply net income divided by the shares on the last day of the year. You will learn the weighted average number of ordinary shares, the denominator that every other EPS calculation builds on, and you will calculate it in Excel in two different ways.
All examples use Velmora Holdings, a fictional listed company that you meet in every lab of the course. The numbers in the article are the same numbers you see in the lab sheet above, so you can read, then try, then check yourself.
The core concept: profit is earned over time, so shares must be counted over time
Profit is a flow. Velmora earns it month by month from 1 January to 31 December. The share count, in contrast, is a stock that jumps at specific dates. If the company raises new capital on 1 October, those new shares only had three months to contribute to the year's profit. Dividing the full year's profit by the year-end share count would treat them as if they had been there all year, and EPS would look lower than the business really earned per share.
The standards solve this with time-weighting. IAS 33 and ASC 260 both define basic EPS as:
Basic EPS = profit attributable to ordinary shareholders ÷ weighted average number of ordinary shares outstanding during the period
Each block of shares is weighted by the fraction of the period for which it was outstanding. Three rules cover most real cases:
- Shares issued for cash count from the date they are issued, usually the date the cash is receivable. Shares issued on 1 March count for ten months of a calendar year.
- Shares bought back (and held as treasury shares or cancelled) count only until the date of the buyback. Treasury shares are not outstanding, so they never enter the denominator.
- Bonus issues, share splits and share consolidations are different: no new money comes in, so they are not time-weighted. They are applied retroactively to all periods presented. This is the topic of lesson 2.
IAS 33 says the time-weighting factor is the number of days the shares were outstanding as a proportion of the days in the period, and adds that a reasonable approximation is adequate in many circumstances. In practice many companies and almost all exam questions work in months when events fall on the first day of a month, as Velmora's do. When an event falls mid-month, use days, as shown later in this article.
Two methods that always give the same answer
There are two standard ways to compute the weighted average. Knowing both is useful, because one is easier to read and the other is faster to type, and calculating it both ways is the simplest reliability check you can build into a workbook.
- Period method. Split the year at every event. For each period, take the shares outstanding, multiply by months in the period ÷ 12, and add up. It mirrors the share register line by line, which makes it easy to audit.
- Changes method. Start with the opening shares for the full twelve months, then add each change multiplied by the months remaining until year end ÷ 12. A buyback is a negative change. It needs no running balance, so the whole calculation fits in one SUMPRODUCT formula.
The two methods are just different groupings of the same multiplication, so they must agree to the share. If they don't, there is a typo in a date or a sign.
Worked example: Velmora Holdings, FY2026
Velmora's financial year runs from 1 January to 31 December 2026. Its share register shows four events. The lab sheet stores each event's start month in column A (1 = January, 3 = March and so on) and uses month 13 as a marker for the end of the year, which makes the month arithmetic clean: months outstanding = next start month − this start month.
| Row | Start month | Event | Change | D: Shares outstanding | E: Months | F: Fraction | G: Weighted shares |
|---|---|---|---|---|---|---|---|
| 4 | 1 | 1 Jan: opening balance | 12,000,000 | 12,000,000 | 2 | 0.1667 | 2,000,000 |
| 5 | 3 | 1 Mar: issued for cash | +2,400,000 | 14,400,000 | 4 | 0.3333 | 4,800,000 |
| 6 | 7 | 1 Jul: share buyback | −600,000 | 13,800,000 | 3 | 0.2500 | 3,450,000 |
| 7 | 10 | 1 Oct: issued for cash | +1,200,000 | 15,000,000 | 3 | 0.2500 | 3,750,000 |
| 8 | 13 | End of year (31 Dec) | |||||
| 9 | Total | 12 | 1.0000 | 14,000,000 |
Read the table row by row. The opening 12,000,000 shares were the only shares in issue for January and February, two months, so they contribute 12,000,000 × 2/12 = 2,000,000 weighted shares. After the issue on 1 March, 14,400,000 shares were outstanding for four months (March to June): 14,400,000 × 4/12 = 4,800,000. The buyback of 600,000 shares on 1 July reduced the balance to 13,800,000 for July to September: 13,800,000 × 3/12 = 3,450,000. The final issue on 1 October brought the balance to 15,000,000 for the last three months: 3,750,000. The total is 14,000,000 weighted average shares. The months add up to 12 and the fractions to 1.0000, which is a quick check that no period was missed or double counted.
These are the formulas behind the table, exactly as you would type them in the lab:
| Cell | Formula | Copy to | What it does |
|---|---|---|---|
| D4 | =C4 | Opening balance | |
| D5 | =D4+C5 | D6:D7 | Running balance after each event |
| E4 | =A5-A4 | E5:E7 | Months until the next event |
| F4 | =E4/12 | F5:F7 | Fraction of the year |
| G4 | =D4*F4 | G5:G7 | Weighted shares for the period |
| G9 | =SUM(G4:G7) | Weighted average shares | |
| G11 | =SUMPRODUCT(C4:C7,$A$8-A4:A7)/12 | Cross-check with the changes method |
Now the cross-check with the changes method. Every share that existed on 1 January is weighted for 12 months. Each later change is weighted only for the months that remain:
| Change | Shares | Months remaining (13 − start) | Weighted |
|---|---|---|---|
| Opening balance | 12,000,000 | 12 | 12,000,000 |
| Issue 1 Mar | +2,400,000 | 10 | +2,000,000 |
| Buyback 1 Jul | −600,000 | 6 | −300,000 |
| Issue 1 Oct | +1,200,000 | 3 | +300,000 |
| Total | 14,000,000 |
12,000,000 + 2,000,000 − 300,000 + 300,000 = 14,000,000. The same answer, without a single running balance. In Excel it is one formula: =SUMPRODUCT(C4:C7,$A$8-A4:A7)/12. SUMPRODUCT multiplies each change in C4:C7 by its months remaining (13 minus the start month, calculated as an array inside the function) and adds the four products.
Why the denominator matters: one profit, four EPS numbers
Lesson 3 of the course calculates the real profit attributable to Velmora's ordinary shareholders. To see the effect of the denominator now, assume for example a profit of 21,000,000. The table shows what happens if you divide it by different share counts:
| Denominator | Shares | EPS (example profit 21,000,000) | Excel |
|---|---|---|---|
| Opening shares (1 Jan) | 12,000,000 | 1.75 | =21000000/C4 |
| Simple average of the four balances | 13,800,000 | 1.52 | =21000000/AVERAGE(D4:D7) |
| Weighted average | 14,000,000 | 1.50 | =21000000/G9 |
| Year-end shares (31 Dec) | 15,000,000 | 1.40 | =21000000/D7 |
The spread between 1.40 and 1.75 is 25 per cent, all from the denominator. The simple average of the four balances (13,800,000) comes close here by coincidence, but it is still wrong in principle: it gives the two-month opening period the same weight as the four-month period after the March issue. With different dates it can be far off.
How to do it in Excel, step by step
Follow these steps in the lab above or in your own workbook. The cell references match the lab sheet.
- Check the inputs: start months in
A4:A8(1, 3, 7, 10 and 13 for the year end) and the changes inC4:C7, with the buyback entered as a negative number (−600,000). Signs carry the logic, so get them right first. - In
D4type=C4. InD5type=D4+C5. SelectD5:D7and press Ctrl+D to fill the formula down. D7 should show 15,000,000, the year-end balance. - In
E4type=A5-A4and fill down toE7. Each cell is the number of months until the next event. E7 uses the year-end marker in A8 (13 − 10 = 3). - In
F4type=E4/12and fill down toF7. The total in F9 should read exactly 1.0000. If it does not, a month is missing or counted twice. - In
G4type=D4*F4and fill down toG7. - Click
G9and press Alt+= (AutoSum on Windows; on a Mac use Cmd+Shift+T or Home › AutoSum), confirm the range G4:G7 and press Enter. The result is 14,000,000. - In
G11type=SUMPRODUCT(C4:C7,A8-A4:A7)/12. While the cursor is onA8in the formula bar, press F4 to make it$A$8, so the reference stays fixed if you copy the formula. The result must equal G9. - Format D4:G11 with thousands separators: select the range and press Ctrl+Shift+1, or go to Home › Number › Comma Style. Leave F4:F7 with four decimals (Ctrl+1 › Number › Decimal places 4).
- Audit: press Ctrl+` (the grave accent key) to show all formulas at once, check that every row follows the same pattern, then press it again to return to values.
=G9-G11 should be 0. Conditional formatting (Home › Conditional Formatting › Highlight Cells Rules › Not Equal To 0) turns it red the moment someone breaks a date or a sign. Professional EPS workbooks are full of small checks like this.When events don't fall on the first of the month: weighting by days
Real share registers are rarely as tidy as Velmora's. Suppose, for example, an issue of 500,000 shares had been made on 15 March 2026 instead of 1 March. Counting it as ten months would overstate it slightly, counting it as nine would understate it. The precise approach is days: the shares were outstanding from 15 March to 31 December inclusive, which is 292 days of a 365-day year.
In Excel: =DAYS(DATE(2026,12,31),DATE(2026,3,15))+1 returns 292, and the weighted shares are =500000*292/365, about 400,000. If you keep the event dates in a column (say B4:B7 as real dates) and the year end in a cell, the changes method becomes =SUMPRODUCT(C4:C7,$B$9-B4:B7+1)/365, where B9 holds 31 Dec 2026. Use 366 days for a leap year. The structure of the calculation does not change, only the unit of time.
Whether you use months or days, be consistent within a period and document the convention in the workbook. Auditors care less about the choice than about a clean, repeatable method.

Common mistakes and how to spot them
Most EPS errors in practice and in exams come from a short list. Each has a tell-tale sign you can check for in seconds.
- Using the year-end share count. If your denominator equals the closing balance (D7) and there were issues during the year, it is wrong. Sign: EPS is lower than it should be after a capital raise, higher after a buyback.
- Simple average of the balances.
=AVERAGE(D4:D7)ignores how long each balance lasted. Sign: your weights do not depend on any dates at all. - Off-by-one months. Shares issued on 1 March are outstanding for March to December, which is ten months, not nine. Sign: the months column does not add up to 12, or the fractions to 1.
- Wrong sign on a buyback. If the buyback is entered as +600,000, the running balance climbs instead of falling. Sign: the cross-check in G11 still agrees (both methods use the same sign), so compare the running balance with the share register.
- Counting treasury shares as outstanding. Shares held by the company itself earn nothing for shareholders. Sign: the denominator matches “shares issued” instead of “shares outstanding” in the equity note.
- Time-weighting a bonus issue or split. A 1-for-2 bonus issue in October does not count for three months: it is applied to the whole year and to the comparative year. Sign: a bonus issue appears as a timed event in your schedule. Lesson 2 shows the correct treatment.
- Relative reference to the year-end marker. Copying
=SUMPRODUCT(C4:C7,A8-A4:A7)/12to another column without$A$8shifts the reference. Sign: the copied cross-check returns nonsense or a #VALUE! error.
Quick reference: Excel functions and shortcuts in this lesson
| Function / shortcut | Used for | Example |
|---|---|---|
SUM | Total of the weighted shares | =SUM(G4:G7) |
SUMPRODUCT | Multiply two ranges row by row and add up, in one cell | =SUMPRODUCT(C4:C7,$A$8-A4:A7)/12 |
DATE, DAYS | Day-based weighting when events fall mid-month | =DAYS(DATE(2026,12,31),DATE(2026,3,15))+1 |
ROUND | Round EPS for presentation (keep full precision in workings) | =ROUND(B20/G9,2) |
| F4 | Toggle absolute/relative reference while editing a formula | A8 → $A$8 |
| Ctrl+D | Fill the formula from the top cell down a selected range | Select D5:D7, Ctrl+D |
| Alt+= | AutoSum into the active cell | In G9 |
| Ctrl+` | Show formulas instead of results (audit view) | Toggle on and off |
| Ctrl+Shift+1 | Number format with thousands separators | Shares in D and G |
Real-world uses
The weighted average share count is not only an exam topic. You will meet it wherever profit is compared with ownership:
- Preparing the EPS note. The finance team takes the share register (issues, buybacks, option exercises, conversions) and turns it into the weighted average for the year and the comparative year, then reconciles it to the equity note.
- Equity research and valuation. An analyst modelling a company that announced a buyback programme estimates how much of the year the repurchased shares will still be outstanding, and so how much the buyback really lifts EPS this year versus next year.
- Executive pay and covenants. Many incentive plans and some loan agreements use an EPS target. Checking whether a target was hit requires the same weighted average the company reports, not a convenient shortcut.
- Capital raising decisions. When a board weighs a mid-year share issue, the timing changes reported EPS in the year of issue. A quick model with months as inputs shows the effect for different closing dates.
- Audit and review. Auditors recompute the denominator independently, often with the changes method, and compare it with management's schedule. A one-cell SUMPRODUCT check is exactly that test.
What you will build in the rest of this course
This first lesson is free. Lessons 2 to 20 are part of the paid course (one-time $9.90) and continue with the same company, so every lab builds on numbers you already know.
Lesson 2 – Stock Splits and Bonus Issues: Retroactive Restatement. Velmora makes a 1-for-2 bonus issue. You calculate the adjustment factor and the bonus shares, restate the weighted shares for both years and see why last year's EPS in this year's report differs from the number published a year ago.
Lesson 3 – Basic EPS: Profit Attributable to Ordinary Shareholders. Now the numerator. You remove the non-controlling interests, deduct the correct preference dividends (cumulative versus non-cumulative is a classic trap) and calculate Velmora's basic EPS with the denominator from this lesson.
Lesson 4 – Diluted EPS for Options and Warrants: The Treasury Stock Method. You work out how many “free” shares the options and warrants would create, leave out the warrants that are out of the money and time-weight the options granted mid-year.
Lesson 5 – Convertible Bonds: The If-Converted Method. You assume the bonds convert, add back the after-tax interest, calculate the extra shares and measure the earnings per incremental share, the number that decides whether a convertible dilutes at all.
Lesson 6 – Convertible Preference Shares: Dividends Back, Shares In. Two classes of convertible preference shares, each with its own dividend and conversion ratio. You test each one against basic EPS and calculate EPS with both converted.
Lesson 7 – Antidilution Test and Sequencing: Most Dilutive First. The step that most candidates get wrong. You rank all four potential ordinary shares, add them one by one and stop at the first one that would increase EPS, exactly as the standards require.
Lesson 8 – EPS Reporting Table and the Five-Year EPS Trend Chart. You present basic and diluted EPS in a reporting table, calculate the compound annual growth of EPS and build a chart of basic versus diluted EPS over five years, ready for a report or a presentation.
Each lab checks your formulas live, explains the typical mistake when you make it and ends with a certificate exam for the whole course.
Summary
EPS divides profit earned over a year by shares that changed during that year, so the denominator must be time-weighted. Shares issued for cash count from their issue date, bought-back shares until their buyback date, and bonus issues and splits are applied retroactively instead. Velmora's weighted average for FY2026 is 14,000,000 shares, whether you compute it period by period with a running balance or in one SUMPRODUCT from the changes. Two methods, one answer, and a check cell that proves it.
Now scroll up to the lab and build the schedule yourself: running balance in column D, months and fractions in E and F, weighted shares in G, the total in G9 and the SUMPRODUCT cross-check in G11. The Coach checks every task as you type and tells you what went wrong if a number does not match.
Frequently asked questions
How do you calculate the weighted average number of shares outstanding?
Multiply each share balance by the fraction of the year it was outstanding and add the results. Alternatively, take the opening shares for the full year and add each issue or subtract each buyback multiplied by the months remaining divided by 12. Both methods give the same number.
Why does EPS use the weighted average and not the year-end number of shares?
Profit is earned over the whole year, while shares issued or bought back during the year only existed for part of it. Time-weighting matches the share count to the period in which the profit was earned, which is what IAS 33 and ASC 260 require.
How are share buybacks treated in the weighted average share count?
Bought-back shares count only up to the date of the buyback. In the changes method you enter the buyback as a negative change multiplied by the months remaining in the year.
Are stock splits and bonus issues time-weighted?
No. A split or bonus issue brings in no new resources, so it is treated as if it had happened at the start of the earliest period presented, and comparative EPS is restated. Only issues and buybacks for consideration are time-weighted.
Should I weight shares by months or by days?
IAS 33 describes the time-weighting factor in days but accepts a reasonable approximation in many circumstances. Months are fine when events fall at the start of a month; for mid-month events, days are more accurate.
What Excel formula calculates weighted average shares in one cell?
With the changes in C4:C7, the start months in A4:A7 and 13 as the year-end marker in A8, use =SUMPRODUCT(C4:C7,$A$8-A4:A7)/12. It multiplies each change by its months remaining and divides the total by 12.
Keep going: Earnings per Share: Basic & Diluted EPS, Weighted Shares, Splits & Convertibles
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.
- Stock Splits and Bonus Issues: Retroactive Restatement
- Basic EPS: Profit Attributable to Ordinary Shareholders
- Diluted EPS for Options and Warrants: The Treasury Stock Method
- Convertible Bonds: The If-Converted Method
- Convertible Preference Shares: Dividends Back, Shares In
- Antidilution Test and Sequencing: Most Dilutive First
- EPS Reporting Table and the Five-Year EPS Trend Chart
- Rights Issues Below Market Price: Theoretical Ex-Rights Price and the Bonus Element
- Shares Issued in an Acquisition and Contingently Issuable Shares
- Partly Paid Shares and Mandatorily Convertible Instruments in Basic EPS
- Beyond Dividends: Preference Share Buybacks, Induced Conversions and Increasing-Rate Shares
- Participating Preference Shares: The Two-Class Method
- Discontinued Operations: EPS by Line and the Control Number
- Loss Years: Loss per Share and Why Diluted Equals Basic
- Quarterly EPS: Why Year-to-Date Diluted EPS Is Not the Sum of the Quarters
- Convertibles Issued or Converted During the Year: Time-Weighting Both Sides
- Sensitivity: How Diluted EPS Moves with the Average Share Price
- EPS Bridge: Explaining the Change from One Year to the Next with a Waterfall Chart
- Final Project: Velmora's FY2028 EPS Note and Dilution Dashboard