What is stock purchase agreement?
A Stock Purchase Agreement (SPA) is a legal contract outlining the terms and conditions when an acquirer buys the shares, and thus the entire entity, of a target company from its shareholders.
For business buyers and founders assessing an acquisition target, the SPA is arguably the most critical document, as it dictates what you are truly buying and the liabilities you are inheriting. Unlike an asset purchase agreement where you select specific assets and liabilities, a stock purchase means you're stepping into the shoes of the previous owner, acquiring the business 'as is,' including all its prior contracts, tax obligations, and potential legal issues. This makes thorough due diligence, especially a meticulous quality of earnings report, absolutely non-negotiable before finalizing an SPA, as undisclosed liabilities can become your problem post-closing.
A well-drafted SPA clearly defines the purchase price, payment terms (e.g., cash at closing, earn-outs, seller notes), representations and warranties from the seller (assurances about the business's condition, finances, and legal standing), indemnification clauses, and closing conditions. Indemnification protects the buyer by obliging the seller to compensate for specific breaches of warranties or pre-closing liabilities that surface after the deal. A common misconception for first-time buyers is believing that the representations and warranties alone fully insulate them; without strong indemnification clauses with reasonable caps and baskets, these warranties offer limited practical protection if a major issue arises.
Founders considering selling their startup via a stock sale also need to understand the comprehensive nature of an SPA. It streamlines the transfer of ownership without re-assigning individual assets or obtaining consents for every contract, which can be a significant advantage over an asset sale. However, sellers face higher post-closing liability exposure because they are typically required to provide extensive indemnities for the entire business, often for an extended period after the sale. Negotiating the scope and duration of these indemnities is a key battleground in SPA discussions.
Worked example
Imagine you're buying 'The Daily Grind,' a successful local coffee shop chain with three locations. If you execute a Stock Purchase Agreement, you're not just buying their espresso machines and customer list; you're buying the entire corporate entity that owns those assets. This means you inherit their lease agreements, their existing tax liabilities from last quarter, any pending legal disputes with a supplier, and even their current employee contracts, along with all their assets. If a lawsuit related to an incident that occurred before your acquisition surfaces six months later, you, as the new owner of the entity, are now responsible, unless your SPA's indemnification clause specifically protects you against such pre-closing liabilities.
Frequently asked questions
What's the main difference between a Stock Purchase Agreement and an Asset Purchase Agreement?
A Stock Purchase Agreement transfers ownership of the entire legal entity, including all its assets and liabilities. An Asset Purchase Agreement, conversely, allows the buyer to selectively acquire specific assets and assume only explicitly defined liabilities, leaving the seller with the remaining entity and its obligations.
Why would a buyer prefer a Stock Purchase Agreement over an Asset Purchase Agreement?
Buyers might prefer a Stock Purchase Agreement for its simplicity, as it avoids the need to formally transfer individual assets and contracts. It can also offer tax advantages for sellers (capital gains treatment) which can lead to a lower purchase price for the buyer. However, this comes with the trade-off of inheriting all historical liabilities of the entity.
What are 'representations and warranties' in an SPA?
Representations and warranties are statements of fact made by the seller about the target company's current condition and past performance. These cover everything from financial accuracy and legal compliance to asset ownership and employee status. If these statements prove untrue after the closing, the buyer typically has recourse under the SPA's indemnification clauses.
How can a buyer protect themselves from undisclosed liabilities in a stock purchase?
Protection primarily comes from rigorous due diligence, a robust quality of earnings analysis, strong seller representations and warranties, and critically, well-negotiated indemnification provisions in the SPA. These provisions allow the buyer to recover losses from the seller for specific pre-closing liabilities or breaches that surface post-acquisition. Escrow accounts are also commonly used to hold back a portion of the purchase price specifically for these potential claims.
Related terms

Founder of IdeaCrystal. Previously founder & CTO of Geonode and Repocket.
Connect on LinkedIn →PUT IT TO USE
Understanding stock purchase agreement is one input. Get a free signal scan to see real demand and competitor data for your specific idea or deal.