Attorney Review Option Available

Stock Purchase Agreement Generator

Generate a professional stock purchase agreement customized for your state. AI-powered with optional attorney review, covering all 50 U.S. jurisdictions.

E-Signature Valid

Stock Purchase Agreement Generator

AI-powered · Attorney review option · All 50 states

Attorney review available · Secure & encrypted

Signature Requirements

E-Signature Valid

Stock purchase agreements are signed by both the buyer and seller. Electronic signatures are legally valid under the ESIGN Act and UETA for commercial transactions including securities transfers between private parties.

How Our Stock Purchase Agreement Generator Works

1

Select Your State

Choose your state to apply stock purchase agreement laws specific to your jurisdiction.

2

Enter Your Details

Provide the required information - party names, terms, and key provisions.

3

AI Generates Your Document

Our AI drafts a comprehensive stock purchase agreement in seconds. Add attorney review for verified compliance.

4

Review & Download

Review your document, make edits, and download as PDF or DOCX. Or upgrade to attorney-drafted for full personalization.

What Is a Stock Purchase Agreement?

A stock purchase agreement (SPA) is a legally binding contract that governs the sale and transfer of ownership shares in a corporation from one or more sellers to a buyer. Unlike an asset purchase agreement, which involves the selective acquisition of specific assets and liabilities, a stock purchase transfers the entire corporate entity, including all of its assets, contracts, permits, and liabilities, both known and unknown. This comprehensive transfer mechanism makes stock purchases particularly significant because the buyer assumes responsibility for the corporation's complete history, including potential undisclosed liabilities, pending litigation, and tax obligations.

The structure of a stock purchase agreement is built around several critical components that allocate risk between the parties. Representations and warranties are factual statements made by the seller regarding the corporation's financial condition, legal compliance, material contracts, intellectual property, employee matters, and litigation exposure. These representations form the basis for the buyer's decision to proceed and create legal remedies if they prove false. Indemnification provisions establish the seller's obligation to compensate the buyer for losses arising from breaches of these representations, typically subject to baskets, caps, and survival periods that limit the scope and duration of the seller's exposure.

Due diligence is the investigative process through which the buyer examines the corporation's legal, financial, and operational status before closing. The scope of due diligence in a stock purchase is typically more extensive than in an asset purchase because the buyer is acquiring everything, including contingent and unknown liabilities. Key areas of investigation include reviewing financial statements, tax returns, material contracts, employee agreements, intellectual property registrations, regulatory compliance, environmental assessments, and pending or threatened litigation. The findings from due diligence inform the negotiation of representations, warranties, and the purchase price, and may result in adjustments through disclosure schedules that qualify the seller's representations.

Federal and state securities laws impose important requirements on stock purchase transactions. Securities Act Section 4(a)(2) provides an exemption from registration for transactions by an issuer not involving a public offering, and Regulation D offers safe harbors for private placements that meet specific conditions. State blue sky laws may impose additional requirements. Tax treatment is a major consideration in structuring a stock purchase, as the buyer does not receive a stepped-up basis in the corporation's assets unless a Section 338(h)(10) election under the Internal Revenue Code is made. This election allows the transaction to be treated as an asset purchase for tax purposes while maintaining the legal form of a stock transfer, and it requires agreement from both parties because of its differential tax impact. A well-drafted SPA should be coordinated with related documents such as non-compete agreements and employment agreements for key personnel.

Why You Need a Stock Purchase Agreement

You are acquiring 100% of the shares of a privately held corporation and need a comprehensive agreement that addresses the purchase price, representations, warranties, indemnification, and all conditions necessary to close the transaction.

An investor is purchasing a minority stake in your corporation through a private placement, and you need to document the transaction with proper securities law compliance, investor representations, and transfer restrictions.

You are selling your shares in a closely held corporation back to the company or to a co-shareholder pursuant to a buy-sell agreement triggered by retirement, disability, or departure, and need formal documentation of the transfer terms.

Your corporation is being acquired as part of a larger merger transaction, and the acquiring company requires a detailed SPA to govern the share transfer, protect against undisclosed liabilities, and establish post-closing obligations.

A partner or co-founder is leaving the business, and you need to structure a share buyback that addresses valuation, payment terms, vesting acceleration, and restrictive covenants through a non-compete agreement.

Key Sections in a Stock Purchase Agreement

Purchase Price and Payment Terms

This section defines the total purchase price, the form of consideration (cash, promissory note, stock, or combination), and the payment schedule. It may include provisions for purchase price adjustments based on working capital, earn-outs tied to post-closing performance, and escrow arrangements to secure indemnification claims.

Representations and Warranties

The most extensively negotiated section, it contains detailed factual statements by both parties regarding the corporation's financial condition, legal status, material contracts, intellectual property, tax compliance, employee matters, and absence of undisclosed liabilities. Buyer representations typically cover authority, financing, and investment intent.

Disclosure Schedules

Disclosure schedules qualify the seller's representations by listing specific exceptions, such as known litigation, contracts with change-of-control provisions, or environmental issues. These schedules transform absolute representations into qualified ones and are heavily negotiated because they directly affect indemnification exposure.

Covenants and Conduct of Business

Pre-closing covenants govern how the business must be operated between signing and closing, typically requiring the seller to conduct business in the ordinary course and prohibiting material changes without buyer consent. Post-closing covenants may include non-compete, non-solicitation, and cooperation obligations.

Closing Conditions

Closing conditions are prerequisites that must be satisfied or waived before the transaction can close. Common conditions include accuracy of representations at closing, absence of material adverse change, receipt of required third-party consents, regulatory approvals, and completion of specified pre-closing deliverables.

Indemnification

The indemnification section allocates post-closing risk by requiring the breaching party to compensate the other for losses. Key negotiation points include the indemnification basket (minimum threshold), cap (maximum liability), survival periods for representations, and whether the remedy is exclusive or supplemental to other legal remedies.

Termination Rights

This section specifies the circumstances under which either party can terminate the agreement before closing, such as failure to satisfy closing conditions, material breach, occurrence of a material adverse change, or passage of a specified outside date. It also addresses the consequences of termination, including any break-up fees.

Stock Purchase Agreement Legal Requirements

Securities Act Section 4(a)(2) exempts private stock transactions from federal registration requirements, but the exemption requires that the offering not involve general solicitation and that all purchasers be sophisticated or accredited investors.

Regulation D Rules 504, 506(b), and 506(c) provide safe harbors for private placements, each with different investor qualification, disclosure, and filing requirements, including the mandatory filing of Form D with the SEC.

State blue sky laws impose additional registration or exemption requirements for stock sales, and multi-state transactions may require compliance with the securities laws of each state where a seller or buyer resides.

IRC Section 338(h)(10) allows parties to elect asset-sale tax treatment for a qualified stock purchase, requiring agreement from both buyer and seller and timely filing of IRS Form 8023.

DGCL Section 202 authorizes restrictions on stock transfers that are noted conspicuously on the certificate, and any transfer restrictions in a shareholders agreement or buy-sell agreement must be documented in the SPA.

Common Stock Purchase Agreement Mistakes to Avoid

Failing to conduct thorough due diligence before signing, which can result in acquiring a corporation with undisclosed liabilities, regulatory violations, or contractual obligations that significantly diminish the value of the acquisition.

Negotiating representations and warranties without corresponding disclosure schedules, leaving the seller exposed to indemnification claims for matters that were discussed during due diligence but not formally disclosed.

Omitting purchase price adjustment mechanisms tied to working capital or net asset targets, which can result in the buyer overpaying if the seller depletes cash or accelerates collections before closing.

Not addressing change-of-control provisions in the corporation's key contracts, which may allow counterparties to terminate agreements upon the stock transfer, potentially destroying significant enterprise value.

Ignoring the tax implications of the transaction structure, particularly the availability and consequences of a Section 338(h)(10) election, which can result in significant unexpected tax liabilities for either party.

Frequently Asked Questions About Stock Purchase Agreements

What is a stock purchase agreement?
A stock purchase agreement is a contract that governs the sale and transfer of shares in a corporation from a seller to a buyer. It defines the purchase price, payment terms, representations and warranties about the corporation's condition, closing conditions, and indemnification provisions that allocate risk between the parties. Unlike an asset purchase, a stock purchase transfers the entire corporate entity with all of its assets, contracts, and liabilities. Stock purchase agreements are used in acquisitions of closely held companies, investor share purchases, founder buyouts, and corporate restructuring transactions.
What is the difference between a stock purchase and asset purchase?
In a stock purchase, the buyer acquires the seller's shares and thereby obtains ownership of the entire corporation, including all assets, contracts, permits, and liabilities, both known and unknown. In an asset purchase, the buyer selectively acquires specific assets and assumes only designated liabilities, leaving unwanted obligations with the seller. Stock purchases are simpler for transferring complex businesses with numerous contracts and permits but expose the buyer to hidden liabilities. Asset purchases allow the buyer to cherry-pick desirable assets and receive a stepped-up tax basis but require individual assignment of contracts and may trigger transfer taxes on specific assets.
What should be included in a stock purchase agreement?
A comprehensive SPA should include the identification of parties and shares being sold, the purchase price and payment structure, detailed representations and warranties from both parties, disclosure schedules qualifying those representations, pre-closing and post-closing covenants, closing conditions and deliverables, indemnification provisions with baskets and caps, termination rights and consequences, and governing law and dispute resolution provisions. Additional exhibits typically include officer certificates, legal opinions, escrow agreements, employment agreements, and non-compete covenants for key personnel.
Who pays taxes in a stock purchase?
In a standard stock purchase, the seller pays capital gains tax on the difference between the sale price and their tax basis in the shares. The buyer does not receive a stepped-up basis in the corporation's underlying assets, meaning the corporation continues to depreciate assets based on their historical cost basis. If both parties agree to make a Section 338(h)(10) election, the transaction is treated as an asset sale for tax purposes, giving the buyer a stepped-up basis but potentially increasing the seller's tax liability because ordinary income rates may apply to certain asset categories. The allocation of the purchase price among asset classes under IRS Form 8883 is a heavily negotiated element of this election.
What are representations and warranties in a stock purchase?
Representations and warranties are factual statements made by the parties in the stock purchase agreement, with seller representations covering the corporation's financial condition, legal compliance, tax status, material contracts, intellectual property, employment matters, litigation exposure, and environmental compliance. These statements serve three functions: they compel disclosure of material information, they form the basis for the buyer's decision to close, and they create contractual remedies through indemnification if they prove inaccurate. Representations are qualified by disclosure schedules that carve out known exceptions, and their survival period after closing determines how long the buyer can bring indemnification claims.
What is due diligence in a stock purchase?
Due diligence is the comprehensive investigation conducted by the buyer to verify the accuracy of the seller's representations and assess the corporation's overall condition before closing. The process typically involves reviewing financial statements and tax returns, examining material contracts and customer relationships, assessing intellectual property portfolios, evaluating employee agreements and benefit plans, investigating regulatory compliance and litigation history, and conducting environmental assessments. The findings inform the negotiation of the purchase price, the scope of representations and warranties, and the indemnification provisions. Due diligence is particularly critical in stock purchases because the buyer assumes all corporate liabilities.
What is an indemnification clause in a stock purchase agreement?
An indemnification clause requires the breaching party to compensate the other for losses arising from breaches of representations, warranties, or covenants in the agreement. Key components include the indemnification basket (a minimum threshold of losses that must be reached before claims can be made), the cap (maximum aggregate liability), survival periods that limit how long after closing claims can be brought, and whether the indemnification remedy is the exclusive post-closing remedy or supplements other legal rights. Escrow arrangements often secure indemnification obligations by holding a portion of the purchase price in a third-party escrow account for a specified period.
How long does a stock purchase take?
The timeline for a stock purchase varies significantly based on the complexity of the transaction, regulatory requirements, and the scope of due diligence needed. A simple share transfer between co-owners of a closely held corporation can close within a few weeks, while a complex acquisition involving extensive due diligence, regulatory approvals, third-party consents, and financing arrangements may take three to six months or longer. The period between signing the agreement and closing is governed by the conditions precedent specified in the agreement, and the parties typically agree on an outside date by which all conditions must be satisfied or the agreement can be terminated.

More Legal Document Generators

Get a Professionally Drafted Stock Purchase Agreement

Most clients choose our attorney-drafted option for a stock purchase agreement fully customized to their situation by a licensed attorney. Need it fast? Our AI generator is a quick, affordable alternative.

On a budget? Download the free template or use the AI generator above for a quick, affordable option.

Attorney Review Available: Legal Tank documents are AI-generated with optional attorney review for verified compliance. For the highest level of assurance, choose our attorney-drafted service where a licensed attorney personally drafts your document. For complex or high-stakes legal matters, we recommend attorney-drafted documents or additional review by a licensed attorney in your jurisdiction. Legal Tank is not a law firm and use of this platform does not create an attorney-client relationship.

Reviewed by licensed attorneys · Editorial policy · Last updated March 2026

Want a professionally drafted document instead?