Image source: Fred's, Inc.

What happened

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

So what

More specifically, Fred's announced this morning that it has signed an agreement with Walgreens Boots Alliance (WBA 3.69%) 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.