Image source: Fred's, Inc.

What happened

Shares of Fred's Inc. (NASDAQ:FRED) were up 87.3% as of 2:15 p.m. EST Tuesday after the drugstore chain agreed to acquire 865 Rite Aid (NYSE:RAD) stores.

So what

More specifically, Fred's announced this morning that it has signed an agreement with Walgreens Boots Alliance (NASDAQ:WBA) and Rite Aid to purchase 865 stores, as well as "certain assets related to store operations," for $950 million in cash.

For perspective, Fred's currently operates "just" 647 stores and three specialty pharmacy-only locations across 15 states in the southeastern United States, including 18 franchised locations. Fred's also has 371 full-service pharmacy departments within its stores, including four franchised locations.

"This will be a transformative event for Fred's Pharmacy that will accelerate our healthcare growth strategy through our acquisition of 865 new stores located in highly attractive markets," explained Fred's CEO Michael Bloom. "We believe that this transaction will also create tremendous opportunities for both our new and existing front of store and pharmacy team members."

Now what

Fred's hopes to close on the transaction in the first half of 2017, creating a "new national competitor" and representing the third-largest drugstore chain in the United States. The company has already received financing commitments to fund the purchase and related transaction costs, as well as ongoing business operations and anticipated capital investments. 

In any case, this is a massive transaction, considering Fred's entire market capitalization sits under $800 million as of this writing after the pop. And while it certainly positions the company as a formidable competitor in its space, with shares now trading at fresh 52-week highs, I certainly wouldn't blame Fred's investors for taking at least some of today's quick profits off the table.

This article represents the opinion of the writer, who may disagree with the “official” recommendation position of a Motley Fool premium advisory service. We’re motley! Questioning an investing thesis -- even one of our own -- helps us all think critically about investing and make decisions that help us become smarter, happier, and richer.