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.
Stock Purchase Agreement Generator
AI-powered · Attorney review option · All 50 states
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
Select Your State
Choose your state to apply stock purchase agreement laws specific to your jurisdiction.
Enter Your Details
Provide the required information - party names, terms, and key provisions.
AI Generates Your Document
Our AI drafts a comprehensive stock purchase agreement in seconds. Add attorney review for verified compliance.
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?
What is the difference between a stock purchase and asset purchase?
What should be included in a stock purchase agreement?
Who pays taxes in a stock purchase?
What are representations and warranties in a stock purchase?
What is due diligence in a stock purchase?
What is an indemnification clause in a stock purchase agreement?
How long does a stock purchase take?
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?