Walgreen shares rose 2.4 percent, or $1.27, to $55.07 in morning trading and after the company announced results Tuesday. Meanwhile, the Standard & Poor's 500 index rose less than 1 percent.
The company recorded an $8 million "last-in-first-out" inventory benefit in this year's quarter, compared with a $132 million charge last year. LIFO is a method of accounting for inventory that assumes a company sells its newest inventory first. The company takes a credit or charge each quarter according to the anticipated inflation rate for the year.
The company attributed the big swing to lower-than-anticipated prescription drug inventory ahead of a transition it made to AmerisourceBergen Corp. Walgreen had announced earlier this year that it and Alliance Boots were buying an ownership stake in drug distributor AmerisourceBergen Corp. Walgreen also entered into a supply agreement with AmerisourceBergen for its drugstores, mail order and specialty pharmacy businesses.
Last year, Walgreen acquired a 45 percent stake in Swiss-based Alliance Boots for about $4 billion in cash plus 83.4 million Walgreen shares. Walgreen then booked $124 million in equity earnings from its stake in this year's quarter.
Walgreen runs the nation's largest chain of drugstores, with 8,116 locations nationwide. The company said an influx of generic drugs also continued to help its bottom line in the fiscal fourth quarter.
Generic drugs, which are cheaper than brand-name medicines, have been helping drugstore chain earnings for several quarters now. They can hurt a drugstore's revenue because of their lower price, but they help profitability because they come with a wider margin between the cost for the pharmacy to purchase the drugs and the reimbursement it receives.
Walgreen, which ranks 37th in the 2013 Fortune 500 list of biggest companies, earned $2.45 billion, or $2.56 per share, in fiscal 2013 on $72.22 billion in revenue.
The company's shares closed at $53.80 on Monday, which put the stock up more than 45 percent so far this year.