ironclad logo

What Is a Stock Purchase Agreement?

12 min read

Stock purchase agreements (SPAs) establish all of the terms related to the sale of a company’s shares. Read on to learn how to write and manage stock purchase agreements.

A team reviewing a stock purchase agreement

Key takeaways:

  • Recognize that stock purchase agreements transfer the entire company including all liabilities, while asset purchase agreements allow buyers to select specific assets and avoid unwanted liabilities, making the structure choice critical to your negotiating position and risk exposure.
  • Include essential provisions in every stock purchase agreement such as clearly defined parties, consideration terms, representations and warranties, indemnification clauses, closing conditions, and pre-closing and post-closing covenants to ensure the transaction is legally enforceable and both parties are protected.
  • Understand that sellers typically prefer stock purchase agreements because they provide a cleaner exit with all liabilities transferring to the buyer and more favorable tax treatment at capital gains rates, while buyers often prefer asset purchases to avoid inheriting liabilities and gain stepped-up basis tax benefits.
  • Implement contract lifecycle management platforms to centralize and automate stock purchase agreement workflows, reducing the risk of missed deadlines, enabling real-time tracking of obligations, and cutting initial contract review time from hours to minutes through AI-powered analysis.

A stock purchase agreement (SPA) is a legally binding contract that establishes the terms and conditions for buying or selling ownership shares in a company. Also called a share purchase agreement, this document governs the transfer of stock between parties.

SPAs differ from asset purchase agreements in a fundamental way. An SPA transfers ownership of the company itself through its shares, while an asset purchase agreement transfers specific assets the company owns—equipment, IP, customer lists—without changing who holds the entity itself.

Whether you’re a co-founder negotiating a buyout, an in-house attorney managing an acquisition, or a legal ops professional trying to get a handle on your company’s ownership transfers, understanding what goes into an SPA helps you protect your organization and navigate the deal process with confidence.

This guide covers what an SPA is, when you’d use one versus other agreement types, the key provisions it should include, and how contract management tools can simplify the drafting and management process.

What is a stock purchase agreement?

A stock purchase agreement is a legally binding contract that governs the transfer of company ownership through the sale of shares. The agreement serves two primary functions: establishing the purchase price and creating a framework that protects both parties throughout the transaction.

SPAs accomplish these goals through specific mechanisms:

  • Setting clear purchase prices for the shares being transferred
  • Defining the transaction timeline and key milestones
  • Identifying potential risks and establishing mitigation strategies

Risk management is central to every SPA. These agreements typically address dozens of scenarios that could affect the deal’s value or viability—from regulatory approvals to financial performance thresholds. The level of detail might seem excessive at first, but this thoroughness protects both buyers and sellers when complications arise.

Organizations use stock purchase agreements in any transaction where company ownership changes hands through the transfer of shares. These agreements apply regardless of company size or deal complexity.

Common scenarios include:

  • A co-founder buying out another co-founder’s stake in a startup
  • A private equity firm acquiring majority ownership in an established company
  • An employee exercising stock options and completing a formal purchase
  • A family member transferring shares to another family member during succession planning
  • A corporation acquiring another company through a share purchase

The formality of an SPA scales with the transaction. A small internal ownership transfer might use a simplified agreement, while a multi-million dollar acquisition requires extensive provisions covering warranties, indemnification, and closing conditions.

Like most other agreements, SPAs don’t have a standard format. The clauses and language contained within each SPA differ greatly depending on your needs, industry, and company size. That said, every SPA should include certain essential provisions to ensure the transaction goes smoothly.

Stock purchase agreements vs. asset purchase agreements

When a company changes hands, the deal typically takes one of two forms: a stock purchase or an asset purchase. The structure you choose has major implications for taxes, liability, and what exactly transfers from seller to buyer. Understanding the difference helps you negotiate from a stronger position, regardless of which side of the table you’re on.

In a stock purchase, the buyer acquires shares of the company itself. That means everything comes along for the ride—assets, contracts, employees, and yes, liabilities too. The company continues to exist as a legal entity; it just has new owners.

An asset purchase is more like shopping à la carte. The buyer picks specific assets they want—equipment, intellectual property, customer contracts—and leaves the rest behind. The selling company still exists after the transaction, but it’s been stripped of whatever the buyer took.

Why buyers often prefer asset purchase agreements

When you’re on the buying side, an asset deal can feel a lot safer. The biggest reason is that you get to pick and choose what you’re acquiring—specific equipment, customer lists, or intellectual property—while leaving unwanted liabilities behind. If the seller has a pending lawsuit or a pile of debt you don’t want to inherit, an asset purchase lets you sidestep it. There’s also a meaningful tax benefit called a “stepped-up basis,” which lets you depreciate the assets from their new, higher value, reducing your tax burden down the road.

Why sellers often prefer stock purchase agreements

If you’re selling, you’ll almost always push for a stock purchase agreement. It’s a much cleaner exit. You’re selling the entire company, which means the buyer takes on all the liabilities, known and unknown. Once the deal closes, you can pretty much walk away. The tax treatment is generally more favorable for sellers too—profit from selling stock is typically taxed at a lower capital gains rate, no higher than 15% for most individuals, whereas selling individual assets can trigger higher ordinary income tax rates on certain gains.

Key provisions in a stock purchase agreement

Every stock purchase agreement should include certain core provisions to ensure the transaction is legally enforceable and clearly understood by both parties. While the specific language varies based on your situation, these essential components create the foundation for a valid SPA.

The provisions below represent standard elements that protect both buyers and sellers during ownership transfers:

Parties

The parties section identifies everyone involved in the stock transfer and establishes their legal capacity to enter the agreement. This section must include full legal names exactly as they appear on official business documents—any mismatch can create enforcement problems later.

For individual sellers or buyers, provide the full legal name as it appears on government-issued identification. For corporate entities, you need additional information. Include the corporation’s complete legal name, any operating names (doing business as, or DBAs) it uses, and the full names and titles of the officers authorized to sign on the corporation’s behalf.

This level of detail matters because it determines who can be held accountable if disputes arise. Courts need clear identification to enforce contractual obligations.

Recitals

The recitals section identifies the buyer and seller by name and establishes the objective of the transaction—essentially, the purpose and context of the deal before the operative terms begin.

Definitions

Include detailed definitions of the terms you’ll be using in your SPA. Here are some definitions that most SPAs use:

  • Affiliate: Any person or company that directly or indirectly controls, is controlled, or is under common control by one of the parties.

  • Average trading price: The volume-weighted average of the trading prices of common stock as reported on financial news company such as Bloomberg or Dow Jones for 30 consecutive full trading days.

  • Business: Refers to the business of selling, marketing, and providing your company’s industry services in a particular geographic area, such as the United States.

  • Business day: Any day other than a Saturday, Sunday, a state or federal holiday, or a day on which the banks in either of the parties’ jurisdictions are obligated by law to close.

  • Business marks: Refers to the trademarks licensed or owned to the seller, its affiliates, and its subsidiaries.

Consideration

Consideration—the value that’s being exchanged between the parties—is one of the six essential elements of a contract. In this section, you need to establish how the buyer will pay the seller and on what terms. Include the following information:

  • Sum payable on closing (include a pricing formula if needed)

  • Deposit required at time of execution

  • Amount payable in case a security is registered against either party

  • Sum held in escrow for breaches of warranties and representations and indemnities

Representations and warranties

Representations and warranties are formal statements each party makes about their legal status, authority, and the condition of what’s being bought or sold. These statements form the foundation of trust in the transaction—buyers rely on them to assess risk, and sellers use them to define the scope of their promises.

Seller representations typically cover several critical areas. The seller must confirm their legal standing and authority to sell the shares, provide details about the company’s capital structure and leadership, prove clear ownership of the shares being sold, and disclose the exact number of shares involved in the transaction.

Buyers make representations too, though they’re usually more limited in scope. Buyer representations focus on their authority to purchase, their financial capacity to complete the transaction, and their understanding of what they’re acquiring. If the buyer is a corporation, they’ll also need to provide information about their legal status and authorized signers.

The level of detail in these sections scales with transaction complexity. A simple transfer between known parties might use straightforward representations, while an acquisition involving outside investors typically requires extensive warranties about financial performance, legal compliance, and operational details.

Pre-closing covenants

Pre-closing covenants define what each party must do—or refrain from doing—between signing the agreement and closing the transaction. This period can last weeks or months, and without clear obligations, either party could take actions that undermine the deal’s value.

Common pre-closing covenants include requirements that the seller operate the business in the ordinary course, maintain insurance coverage, notify the buyer of material changes, and refrain from incurring new debt or making unusual expenditures. Buyers might be required to maintain deal confidentiality, secure financing, or obtain regulatory approvals.

These provisions protect the deal’s integrity during the vulnerable period after commitment but before completion. They ensure the buyer gets what they agreed to purchase, and they give the seller confidence the buyer will follow through.

Covenants

Covenants are ongoing obligations that extend beyond the closing date. Unlike one-time actions required before closing, these commitments continue to bind one or both parties after ownership transfers.

Post-closing covenants commonly address several scenarios. The seller might agree not to compete with the business for a specified period, commit to assisting with the transition, or maintain confidentiality about proprietary information they held while owning the company. Buyers might covenant to retain certain employees, maintain specific business practices, or provide the seller with periodic financial updates.

These forward-looking obligations help ensure the transaction achieves its intended purpose even after the formal sale completes. They’re particularly important when the seller remains involved in any capacity or when buyer actions could affect earn-out payments or other contingent consideration.

Indemnification

This is one of the most highly negotiated clauses in the SPA. Also known as a “hold harmless” clause, the purpose of an indemnification clause is to compensate a party for loss or harm arising from the other party’s failure to act.

For example, let’s say you’re the in-house counsel of a software development company that wants to sell its shares to a buyer. You would want to include an indemnification clause in the SPA so you can indemnify the buyer for any intellectual property or copyright infringement claims.

Here’s what the clause could look like:

Indemnification. [Your company] agrees to indemnify and defend Buyer and its Affiliates and their officers, directors, and employees from and against all costs, losses, expenses, damages, and liabilities that may be incurred or suffered by Buyer and its Affiliates as a result of or arising out of a claim relating to:

  • Any omission or negligent act of [your company], its Affiliates, and its personnel

  • [Your company]’s breach of any warranty, representation, or covenant covered in this agreement

Closing conditions

Closing conditions are specific requirements that must be satisfied before the transaction can be completed. Think of them as a checklist that determines whether the deal moves forward or falls apart.

Standard closing conditions address several key areas. Both parties typically need to obtain necessary regulatory approvals, confirm that representations and warranties remain accurate as of the closing date, and secure any required third-party consents. The buyer often requires satisfactory completion of due diligence and confirmation that no material adverse changes have occurred to the business.

Each condition includes a deadline and defines who’s responsible for satisfying it. If a condition isn’t met by the deadline, the agreement usually gives the parties options: extend the timeline, waive the condition, or terminate the agreement. This structure creates accountability while maintaining flexibility for unexpected complications.

Some conditions protect buyers, others protect sellers, and some protect both parties. Understanding which conditions are negotiable—and which are standard for your transaction type—helps you focus negotiations on what actually matters.

Force majeure

Force majeure clauses relieve a party from performing a contract if performance is highly impractical or impossible due to an event that the parties couldn’t have reasonably anticipated or controlled.

Many companies rely on this clause to remove liability for unexpected and unavoidable events such as lockdowns, economic catastrophes, and sudden financial crises. To cover your bases, remember to include:

  • A list of potential force majeure events, such as earthquakes, tornados, and strikes

  • A catch-all like “and other causes reasonably beyond either party’s control”

Standard boilerplate clauses

SPAs also require the same boilerplate clauses you’d find in most business agreements:

  • Jurisdiction

  • Termination

  • Default

  • Dispute resolution

Managing stock purchase agreements

Managing stock purchase agreements manually creates significant operational risks. These documents contain dozens of interconnected clauses, multiple parties with different obligations, and time-sensitive conditions that must be tracked from signing through closing and beyond. Standard General and Admin contracts already take an average of 18 days to sign and require legal involvement 34% of the time, according to the 2026 Contracting Benchmark Report. When you add the complexity of an ownership transfer, those timelines can stretch even further. Miss a single closing condition deadline or fail to monitor a post-closing covenant, and you could face financial penalties or jeopardize the entire transaction.

Traditional management approaches—spreadsheets, shared drives, email threads—don’t scale when you’re handling multiple transactions or complex agreements, especially when 83% of legal departments face rising demand.

Modern contract lifecycle management (CLM) platforms address these problems through centralization and automation. A single repository gives all stakeholders access to current agreement versions, real-time approval tracking, and automatic alerts about upcoming deadlines or required actions.

AI capabilities add another layer of efficiency to SPA management. AI can extract key terms from existing agreements, compare incoming counterparty papers against your standard positions, and flag unusual clauses that warrant attorney review. This is a massive advantage considering that 24% of all contracts are executed on counterparty paper, according to the report. For legal teams managing multiple simultaneous transactions, this kind of automated first-pass analysis can cut the time spent on initial contract review from hours to minutes.

That’s exactly what Ironclad is built to do. The Data Repository enables you to find, draft, and manage SPAs in one place. Because it’s a codeless platform that requires no special training, it lets you bring in SPAs from across your organization, keep all of your information secure, and surface answers to questions within seconds. Need to pull up the renewal date of the SPA you signed last month? Just use the Repository’s filters.

You can also give other users as much (or as little) access to your SPAs as needed. Breaking down contract silos gives the legal team the cross-functional support they need to draft and manage agreements that touch more than one department.

There is also a no-code Workflow Designer that lets you create and approve automated workflows for SPAs. Its drag-and-drop interface requires no technical expertise—anyone can build and launch SPA generation and approval processes in minutes. All they have to do is:

  • Upload an SPA template

  • Tag fields as needed

  • Add approvers and signers

For example, you can upload your own SPA template, tag fields that need to be filled out, and set up an approval workflow with the right stakeholders. This ensures your templates stay up-to-date and aligned with your company’s guardrails, simplifying the process for everyone involved. If you’re interested in seeing how a CLM can help, you can request a demo today.

Frequently asked questions about stock purchase agreements

What’s the difference between a stock purchase agreement and a share purchase agreement?

Stock purchase agreement and share purchase agreement are two terms for the same legal document. Both describe contracts governing the transfer of company ownership through equity, and you can use either term interchangeably based on your preference or jurisdiction.

Can I create my own stock purchase agreement?

You can create your own stock purchase agreement, but the complexity of your transaction should guide whether you do it yourself. Simple transfers between known parties with straightforward terms might work with a template, while transactions involving significant value, multiple parties, or complex terms typically require legal counsel to ensure all necessary protections are included and enforceable.

How much does it cost to draft a stock purchase agreement?

Stock purchase agreement costs vary widely based on transaction complexity and who drafts the document. Attorney-drafted agreements typically range from $1,000 to $5,000 for straightforward deals, while complex acquisitions can cost $10,000 or more. Contract lifecycle management platforms with template libraries and AI drafting capabilities—where 82% of legal departments see cost-saving potential—can significantly reduce these costs by handling routine provisions automatically and requiring attorney review only for customized or higher-risk terms.


Ironclad is not a law firm, and this post does not constitute or contain legal advice. To evaluate the accuracy, sufficiency, or reliability of the ideas and guidance reflected here, or the applicability of these materials to your business, you should consult with a licensed attorney. Use of and access to any of the resources contained within Ironclad’s site do not create an attorney-client relationship between the user and Ironclad.