Direct Answer
Insider buying is a discretionary, cash-paid open-market purchase — Form 4 transaction code P — while compensation-driven transactions such as option exercises (code M), stock grants and RSU vesting (code A), and the automatic tax-withholding sales that follow vesting (code F) reflect an insider's existing pay package rather than a fresh decision to bet on the stock. A headline reading "insider bought stock" is only meaningful once you've confirmed the transaction code, whether cash actually changed hands at market price, and whether the transaction was scheduled by a 10b5-1 plan rather than chosen in the moment.
Key Takeaways
- Only Form 4 transaction code P (open-market or private purchase) represents a discretionary, cash-paid decision to acquire more stock.
- Code M (option exercise), code A (grant or award), and code F (tax-withholding sale) are all compensation mechanics, not sentiment signals.
- A rising insider share count is not proof of buying — option exercises and grants increase share counts without any open-market purchase occurring.
- Automated headlines and some data feeds flag any share-count increase as "insider buying" without checking the transaction code.
- A three-question filter — transaction code, did cash change hands at market price, and is it plan-driven — separates genuine signal from compensation noise in under a minute per filing.
- An option exercise becomes more informative if the insider holds the shares rather than immediately selling them in a same-day-sale transaction.
What Do Form 4 Transaction Codes Actually Mean?
Every Form 4 filing carries a single-letter transaction code that identifies exactly what happened. Reading that code is the fastest way to tell a genuine purchase from a compensation event, and it takes seconds once you know what to look for.
| Code | Transaction | Cash paid at market price? | Sentiment signal? |
|---|---|---|---|
| P | Open-market or private purchase | Yes | Yes — the only code that reliably reflects discretionary conviction |
| M | Option exercise | No — strike price fixed by an old grant, sometimes near $0 | No, on its own; watch what happens to the shares next |
| A | Grant or award (RSU vesting, restricted stock) | No — received as compensation | No — the insider didn't choose to acquire these shares |
| F | Tax-withholding sale (shares surrendered to cover taxes on vesting) | No — mechanical, often automatic | No — this is the opposite of a discretionary decision |
| S | Open-market sale | Yes (insider receives cash) | Weak — see the companion guide on interpreting insider selling |
| G | Gift | No | No — transferred, not bought or sold for value |
Why an Option Exercise (Code M) Isn't the Same as Buying
An option exercise happens when an insider converts a stock option, granted as compensation months or years earlier, into actual shares by paying the option's fixed strike price. Two things make this fundamentally different from a code P purchase. First, the price is locked in by the original grant date, not chosen today — an insider exercising a $15 strike option when the stock trades at $60 is capturing built-in value, not making a fresh bet at the current price. Second, exercises are frequently driven by an approaching expiration date rather than any view on the stock: options typically expire ten years after grant, and insiders commonly exercise in the final window purely to avoid losing the award, regardless of what they think the stock will do next.
The more informative detail is what happens immediately after the exercise. A same-day-sale exercise — where the insider exercises and sells the resulting shares in the same transaction, sometimes even the same Form 4 — is a cash-out with no continuing exposure and carries essentially no bullish signal. An insider who exercises and then holds the shares outright, taking on real dollar exposure they didn't have to accept, is closer to a genuine statement of continued conviction, even though the initiating transaction code is still M rather than P.
Why Grants, Vesting, and Withholding Sales (Codes A and F) Aren't Signals Either
Restricted stock units and stock grants vest on a schedule fixed by the original compensation agreement, often years before the vesting date arrives. When RSUs vest, the insider receives shares (code A) simply because a predetermined amount of time passed — not because they decided, today, that the stock was attractively priced. In many compensation plans, vesting also triggers an automatic code F transaction: the company withholds and sells a portion of the newly vested shares to cover the insider's tax withholding obligation, without the insider making any active choice about market timing at all.
The result is a predictable, recurring pattern at many companies: a batch of code A shares appears on the vesting date, followed immediately by a code F sale of a portion of those shares. Neither event reflects a view on the stock. A reader scanning raw share-count changes without checking codes could easily misread this as either meaningful buying (the code A grant) or a bearish insider dump (the code F sale), when it is simply payroll administration executing on autopilot.
The Three-Question Filter Checklist
Applying this checklist to any Form 4 filing before reacting to it takes under a minute and eliminates the large majority of non-informative "insider buying" headlines.
- What is the transaction code? Only code P counts as a genuine open-market purchase. Codes M, A, F, and G are compensation or transfer mechanics and should be set aside by default.
- Did cash change hands at market price? A code P purchase means the insider paid the prevailing market price out of pocket. An option exercise pays a fixed historical strike price, often deeply discounted from the current price, which is a materially different economic decision.
- Is the transaction plan-driven or discretionary? Check the Form 4's footnotes for a reference to a Rule 10b5-1 plan. A pre-scheduled transaction, whether a purchase or a sale, was decided at plan adoption, not in reaction to current conditions, and should be weighted lower than an unscheduled, discretionary filing.
Worked Example: Three Filings, One Company
A software company files three Form 4s from three different insiders within the same week. Applying the checklist to each shows why they carry very different weight:
- Filing A — the CFO, code P: Purchased 4,000 shares at the day's closing price of $52, paying $208,000 in cash, with no 10b5-1 plan referenced. All three checklist answers point to signal: code P, cash paid at market, fully discretionary. This is genuine insider buying.
- Filing B — a division head, code M: Exercised options at a $22 strike price on a stock trading at $52, then sold all of the resulting shares the same day. The transaction code is M, no market-price cash was paid (the strike price was fixed years ago), and the same-day sale means no continuing exposure was taken on. This filing should not be read as buying at all, despite increasing the insider's reported activity.
- Filing C — a board member, code A followed by code F: Received 1,500 shares from a scheduled RSU vesting (code A), then had 620 of those shares automatically withheld and sold to cover taxes (code F), per the footnote referencing the company's standard withholding election. Neither leg reflects a market view; both are payroll mechanics executing on a schedule set long before this week.
Only Filing A clears the three-question filter. Filings B and C would both be excluded from any legitimate insider-buying screen, even though a raw data feed that only tracks "shares acquired" might lump all three together as the same kind of event.
Common Mistake
The most common mistake is trusting a headline or a data aggregator's default "insider buying" flag without opening the underlying Form 4 to check the transaction code. Many free screening tools and news aggregators surface any filing that increases an insider's reported share count, including option exercises and vesting-related grants, under a generic "insider bought" label. The fix costs almost nothing: EDGAR and most insider-tracking sites display the transaction code directly in the filing summary, so confirming code P takes one extra glance before treating any filing as a real signal.
Misconceptions Versus Reality
| Misconception | Reality |
|---|---|
| Any Form 4 showing more shares means the insider bought stock | Option exercises and stock grants also increase reported share counts without any open-market purchase occurring |
| An option exercise is basically the same as a purchase | The strike price is fixed by an old grant date, often far below the current market price, and exercises are frequently forced by an approaching expiration deadline |
| A large dollar figure on a Form 4 always means real conviction | A large code F tax-withholding sale can look like a large dollar transaction while being entirely automatic and unrelated to any view on the stock |
| Compensation-driven transactions can be ignored entirely | An option exercise followed by the insider holding (not selling) the shares can still carry some signal, since the insider chose to keep exposure they weren't required to keep |
Frequently Asked Questions
What is the difference between insider buying and a compensation-driven transaction?
Insider buying is a discretionary open-market purchase (Form 4 transaction code P) where the insider voluntarily pays cash to acquire additional shares. A compensation-driven transaction is any Form 4 entry that results from the insider's pay package rather than a fresh investment decision, such as an option exercise (code M), an RSU or stock award vesting (code A), or a tax-withholding sale executed automatically to cover taxes owed on that vesting (code F). Compensation-driven transactions can create share activity, or even a rising share count, without reflecting any new conviction about the stock.
Why can a headline about insider buying be misleading?
Automated headline generators and some data aggregators flag any Form 4 filing that increases an insider's share count as "insider buying," without checking the transaction code. An option exercise under code M increases the insider's share count and can appear identical to a genuine purchase in a raw headline, even though the insider paid a discounted strike price set years earlier rather than making a fresh open-market bet at the current price, or in many cases paid nothing at all beyond the option's existing value. Reading the transaction code before reacting to any insider-buying headline is the single most reliable way to avoid this trap.
What does Form 4 transaction code P mean?
Code P denotes an open-market or private purchase of company stock, meaning the insider paid cash at or near the prevailing market price to acquire the shares. It is the transaction code most closely associated with genuine sentiment, because it is the only common code where the insider is both spending real money and choosing, without any plan or compensation event requiring it, to increase their exposure to the stock.
Is an option exercise (code M) ever a meaningful signal?
An option exercise on its own is rarely informative, because it is frequently driven by an approaching expiration date rather than a view on value, and the strike price paid is fixed by the original grant rather than the current market. It becomes more informative only when combined with what the insider does next: exercising and then holding the shares outright, without an immediate same-day sale, suggests the insider chose to increase net exposure rather than simply capture the built-in value and exit.
Does a 10b5-1 trading plan make a transaction less informative?
Yes, for sales. A 10b5-1 plan is a pre-arranged schedule set up when the insider held no material non-public information, so a sale executed under the plan reflects a decision made months earlier, not the insider's current view. Purchases made under a 10b5-1 plan are less common but can still carry some signal, since the insider committed capital to buying at a future date based on a belief the stock would be attractively valued then.
Which Swoopr resource covers the broader insider buying and selling signal framework?
See Insider Buying and Selling Signals, which covers Form 4 basics, cluster buying, and the overall case for why insider purchases outperform insider sales as a sentiment signal.
Sources
Disclaimer
This guide is for educational and informational purposes only and does not constitute investment advice. Filtering Form 4 transaction codes helps separate genuine signal from compensation noise but does not guarantee future stock performance. Always conduct your own due diligence and consult a qualified financial professional before making investment decisions.
Related Reading
- Insider Transactions — the parent hub for this content group, covering how to read and screen Form 4 filings.
- Interpreting Insider Selling — why insider sales are a far noisier signal than insider purchases, and how to evaluate one.
- Insider Buying and Selling Signals — the broader framework for reading Form 4 filings, cluster buying, and sentiment weighting.