The amount of shares outstanding in a company will often change due to a company issuing new shares, repurchasing and retiring existing shares, and other financial instruments such as employee options being converted into shares.
The weighted average of outstanding shares is a calculation that incorporates any changes in the amount of outstanding shares over a reporting period. It is an important number, as it is used to calculate key financial measures such as earnings per share (EPS) for the time period.
Let's look at an example:
Say a company has 100,000 shares outstanding at the start of the year. Halfway through the year, it issues an additional 100,000 shares, so the total amount of shares outstanding increases to 200,000. If at the end of the year the company reports earnings of $200,000, which amount of shares should be used to calculate EPS: 100,000 or 200,000? If the 200,000 shares were used, the EPS would be $1, and if 100,000 shares were used, the EPS would be $2  this is quite a large range!
This potentially large range is the reason why a weighted average is used, as it ensures that financial calculations will be as accurate as possible in the event that the amount of a company's shares changes over time. The weighted average number of shares is calculated by taking the number of outstanding shares and multiplying the portion of the reporting period those shares covered, doing this for each portion and, finally, summing the total. The weighted average number of outstanding shares in our example would be 150,000 shares.
The earnings per share calculation for the year would then be calculated as earnings divided by the weighted average number of shares ($200,000/150,000), which is equal to $1.33 per share.
To read more, see The Basics of Outstanding Shares and the Float and The Dangers of Stock Dilution.

What is the difference between weighted average shares outstanding and basic weighted ...
Outstanding shares refers to stock that is currently held by investors, including shares held by the public, and restricted ... Read Answer >> 
What is the difference between shares outstanding and floating stock?
Learn about shares outstanding, floating stock, how to calculate a company's floating stock and the difference between shares ... Read Answer >> 
How can a company trade more shares in one day than there are shares outstanding? ...
The number of shares traded in a single day can be greater than the number of a company's outstanding shares, but this is ... Read Answer >> 
What is the difference between a company's outstanding shares and its float?
Understanding share counts, including outstanding shares relative to float, is an integral part of determining whether or ... Read Answer >> 
How do I calculate earnings per share with simple capital and complex capital structure?
Learn the difference between simple and complex capital structures and how the structure affects a company's calculations ... Read Answer >>

Investing
The Weighted Average Of Outstanding Shares
The quantity of a companyâ€™s outstanding shares changes when it issues new shares, repurchases or retires existing ones, or converts others. 
Investing
What are Issued Shares?
Issued shares are the amount of authorized stocks a companyâ€™s shareholders buy and own. The annual report shows the number of outstanding shares. 
Investing
The Basics Of Outstanding Shares And The Float
We go over different types of shares and what investors need to know about them. 
Managing Wealth
Calculating Basic Earnings Per Share
Basics earnings per share measures the amount of net income earned per share of outstanding stock. 
Investing
Getting The Real Earnings
EPS helps investors analyze earnings in relation to changes in newshare capital. 
Investing
The Dangers of Share Dilution
Investors need to be aware of dilutive securities and how they can affect existing shareholders. 
Investing
The 5 Types Of Earnings Per Share
A look at the five varieties of EPS and what each represents can help an investor determine whether a company is a good value, or not. 
Investing
Assess Shareholder Wealth With EPS
Find out if management is doing its job of creating profit for investors. 
Managing Wealth
Weighted Average Cost Of Capital (WACC)
Weighted average cost of capital may be hard to calculate, but it's a solid way to measure investment quality

Earnings Per Share  EPS
The portion of a company's profit allocated to each outstanding ... 
Fully Diluted Shares
The total number of shares that would be outstanding if all possible ... 
Interim Earnings Per Share
A measure of earnings calculated at a specified time, shorter ... 
Sales Per Share
A ratio that computes the total revenue earned per share over ... 
Value Change
An adjustment made to a stock's price to reflect the number of ... 
Weighted Average
An average in which each quantity to be averaged is assigned ...