Pl analysis

From FerroxLabs/wayland · View interactive version

Pl analysis is an AI agent skill from the GitHub repository FerroxLabs/wayland. Performs profit and loss (P&L) statement analysis including variance analysis, trend identification, margin analysis, and actionable recommendations. Use when the user asks about P&L analysis, income statement review, profit margin analysis, variance analysis, or financial performance review. Do NOT

How to use this skill

Skill file

P&L Analysis

When to Use

Use this skill when:

Do NOT use this skill when:


Process

Step 1: Gather Data and Establish the Analytical Frame

Before touching numbers, establish exactly what you are analyzing and why the answer matters.

Step 2: Standardize and Reclassify the P&L Structure

Raw P&L data from accounting systems rarely matches the analytical format needed. Standardize it before analysis.

Step 3: Execute Variance Analysis

Variance analysis is the mechanical core of the work. Do it rigorously and consistently.

Step 4: Conduct Margin Analysis

Margins are the most information-dense signals in a P&L. Analyze each layer separately before connecting them.

Step 5: Identify the 3--5 Primary Drivers

Distill the analysis into a focused set of causes. An analysis with 12 "key drivers" has no key drivers.

Step 6: Develop Specific, Quantified Recommendations

Generic recommendations destroy the value of good analysis. Every recommendation must pass the "so what" test.

Step 7: Format the Output for the Stated Audience

The same analysis needs different packaging for different consumers.


Output Format

## P&L Analysis: [Company / Business Unit] -- [Period] vs. [Comparison Baseline]
**Prepared for:** [Audience]
**Analysis type:** [Actual vs. Budget | Actual vs. Prior Period | YoY Same Period]
**Materiality threshold applied:** [Dollar amount] or [Percentage]

---

### Executive Summary
[2--3 sentences covering: overall performance verdict (beat/miss/in-line), 
primary driver of any gap, and the most important action required. 
Example: "Q3 revenue missed budget by 10% ($50K), driven by a conversion rate 
decline in the enterprise segment, while gross margin improved 2pp to 70% 
indicating healthy unit economics. The shortfall was fully absorbed into 
operating income due to simultaneous COGS efficiency, but S&M overspend of 
$20K (20% above budget) with no corresponding revenue return is the critical 
issue requiring immediate audit."]

---

### P&L with Variance Analysis

| Line Item                    | Actual ($) | Budget ($) | Var ($)   | Var (%)  | F/U | Type       |
|------------------------------|-----------|-----------|----------|---------|-----|------------|
| **Total Revenue**            |           |           |          |         |     |            |
| -- Recurring Revenue         |           |           |          |         |     |            |
| -- Non-Recurring Revenue     |           |           |          |         |     |            |
| **Cost of Revenue (COGS)**   |           |           |          |         |     |            |
| **Gross Profit**             |           |           |          |         |     |            |
| *Gross Margin %*             |    X.X%   |    X.X%   | X.Xpp    |         |     |            |
| Sales & Marketing            |           |           |          |         |     |            |
| Research & Development       |           |           |          |         |     |            |
| General & Administrative     |           |           |          |         |     |            |
| **Total OpEx**               |           |           |          |         |     |            |
| *OpEx as % of Revenue*       |    X.X%   |    X.X%   | X.Xpp    |         |     |            |
| **EBITDA**                   |           |           |          |         |     |            |
| *EBITDA Margin %*            |    X.X%   |    X.X%   | X.Xpp    |         |     |            |
| D&A                          |           |           |          |         |     |            |
| **Operating Income (EBIT)**  |           |           |          |         |     |            |
| Interest & Non-Op Items      |           |           |          |         |     |            |
| Taxes                        |           |           |          |         |     |            |
| **Net Income**               |           |           |          |         |     |            |
| *Net Margin %*               |    X.X%   |    X.X%   | X.Xpp    |         |     |            |

F = Favorable, U = Unfavorable
Type = One-Time (OT) | Timing (T) | Structural (S)

---

### Margin Trend Analysis (Multi-Period)

| Metric                   | [Period -3] | [Period -2] | [Period -1] | Current  | Trend Direction        |
|--------------------------|------------|------------|------------|---------|------------------------|
| Gross Margin %           |            |            |            |         | Expanding / Contracting / Flat |
| S&M as % of Revenue      |            |            |            |         | Improving / Worsening  |
| R&D as % of Revenue      |            |            |            |         | Improving / Worsening  |
| G&A as % of Revenue      |            |            |            |         | Improving / Worsening  |
| EBITDA Margin %          |            |            |            |         | Expanding / Contracting |
| Net Margin %             |            |            |            |         | Expanding / Contracting |

**Trend interpretation:** [1--2 sentences explaining what the trend pattern means 
collectively -- e.g., "Gross margin is expanding while OpEx ratios are also rising, 
indicating the business is investing ahead of revenue scale -- acceptable if 
revenue acceleration is anticipated within 1--2 quarters, problematic if not."]

---

### Variance Bridge (Top Material Item)

Starting point (Budget): $[X]
+ Volume effect:         $[X] ([explain: X fewer/more units at budgeted ASP])
+ Price/Rate effect:     $[X] ([explain: ASP $X below/above budget])
+ Mix effect:            $[X] ([explain: X% higher weighting to lower-margin product])
= Actual:                $[X]
Total variance:          $[X] ([X]%) [F/U]

---

### Key Variance Drivers

**Driver 1: [Line Item] -- [F/U] $[X] ([X]%) -- [Type: OT/T/S]**
- **Root cause:** [Specific, one-level-deeper explanation beyond "costs were higher"]
- **Volume vs. rate/price decomposition:** [Which dominated?]
- **Forward impact:** [Dollar estimate of ongoing impact per quarter if structural, 
  or resolution timeline if timing]
- **Watch indicator:** [The specific metric to track to confirm this resolves or escalates]

**Driver 2: [Line Item] -- [F/U] $[X] ([X]%) -- [Type: OT/T/S]**
- **Root cause:** [Specific explanation]
- **Volume vs. rate/price decomposition:** [Which dominated?]
- **Forward impact:** [Dollar estimate or timeline]
- **Watch indicator:** [Specific metric]

**Driver 3: [Line Item] -- [F/U] $[X] ([X]%) -- [Type: OT/T/S]**
- **Root cause:** [Specific explanation]
- **Volume vs. rate/price decomposition:** [Which dominated?]
- **Forward impact:** [Dollar estimate or timeline]
- **Watch indicator:** [Specific metric]

[Add Driver 4 and Driver 5 if applicable]

---

### Quality-of-Earnings Notes
[Include only when relevant -- skip section if not applicable]
- **Non-recurring items included in revenue:** [Describe and quantify]
- **Non-cash charges in COGS or OpEx:** [SBC, D&A, impairments -- amounts]
- **Revenue recognition judgments:** [Any deferred revenue acceleration, 
  bill-and-hold arrangements, percent-of-completion estimates]
- **Adjusted EBITDA vs. GAAP EBITDA:** [Addback items and amounts]

---

### Recommendations

| #  | Action (Specific)                        | Linked Driver | Est. Impact    | Timeframe | Priority        |
|----|------------------------------------------|---------------|----------------|-----------|-----------------|
| 1  | [Concrete action with named owner/system]| Driver [X]    | $[X]--$[X]/qtr | [Month]   | Quick Win       |
| 2  | [Concrete action]                        | Driver [X]    | $[X]/qtr       | [Quarter] | Quick Win       |
| 3  | [Concrete action]                        | Driver [X]    | $[X]--$[X]/yr  | [Quarter] | Strategic       |
| 4  | [Concrete action]                        | Driver [X]    | $[X]/yr        | Next cycle| Monitor Only    |

Priority Key: Quick Win (High impact, low effort) | Strategic (High impact, high effort) | 
Optimize (Low impact, low effort) | Deprioritize (Low impact, high effort)

---

### Data Gaps and Assumptions
- [List any reclassifications made to standardize the P&L]
- [Note any line items where data was unavailable and how the analysis was adjusted]
- [Flag where estimates were used rather than reported figures]

Rules

  1. Never conflate percentage change with percentage point change. Gross margin moving from 62% to 67% is a 5pp improvement, not an 8.1% improvement. Always express margin movements in percentage points (pp). Reserve percentage change language for absolute values like revenue (revenue grew 8%).
  1. Apply consistent sign conventions throughout. Expenses are shown as negative numbers in the P&L table (parenthetical or with minus signs). Favorable variances are positive for revenue lines (actual exceeds budget) and positive for expense lines (actual is below budget, meaning less was spent). Never mix conventions in a single table.
  1. Never accept a variance explanation that is tautological. "Revenue was below budget because we sold less" is not an explanation -- it is a restatement. Force the analysis to one causal level deeper: was it a volume shortfall (fewer deals closed), an ASP shortfall (deals closed at lower prices), a mix shift (more small deals, fewer large), or a recognition timing issue?
  1. State the materiality threshold explicitly before listing variances and apply it consistently. Do not mention a $3,000 variance in G&A while omitting a $4,000 favorable variance in COGS. Use the defined threshold for all lines without exception.
  1. Separate recurring from non-recurring revenue before calculating any margins. A $50K one-time consulting engagement in a SaaS company's quarter inflates reported gross margin if it sits above the COGS line. Adjusted gross margin excluding one-time items is the operative health metric for ongoing operations.
  1. Do not allow COGS misclassification to pass unchallenged. If a business is reporting COGS that includes items that are clearly fixed-cost (executive salaries of the delivery team, all office rent), note it and calculate an adjusted gross margin with a correct COGS. Misclassified COGS inflates gross margin and obscures true unit economics.
  1. Tag every variance as Timing, Structural, or One-Time -- never leave the type blank. This classification is the most actionable output of variance analysis. Structural variances require strategy changes; timing variances require monitoring; one-time variances require reforecasting. Unclassified variances create confusion about what action to take.
  1. Calculate operating leverage explicitly. Divide the percentage change in operating income (or EBITDA) by the percentage change in revenue. A ratio above 1.0 means the business has positive operating leverage and is scaling efficiently. A ratio below 1.0 means OpEx is growing faster than revenue -- flag this regardless of whether absolute operating income is positive.
  1. When comparing to prior year for seasonal businesses, always flag any structural changes that make the comparison non-representative. A business that added a new product line, made an acquisition, changed pricing, or shifted its sales model in the past 12 months cannot be compared directly to prior year without adjusting for those changes first.
  1. Never present a recommendation without an estimated dollar impact and a timeframe. "Review vendor contracts" is a task, not a recommendation. A recommendation must specify the action, the expected outcome, and the approximate financial magnitude. If a precise estimate is impossible, provide a range and explain what drives the width of the range.
  1. Cross-check internal consistency before presenting the analysis. Revenue minus COGS must equal Gross Profit. Gross Profit minus Total OpEx must equal EBIT. Verify that the numbers foot and cross before presenting. A P&L that does not foot destroys credibility regardless of the quality of the commentary.
  1. When EBITDA is calculated, always show the D&A addback explicitly. Many users conflate EBIT and EBITDA. Showing the D&A addback line makes the derivation transparent and allows the user to verify the calculation independently.

Edge Cases

1. No Budget or Comparison Baseline Available

When only a single period of actuals is provided, period-over-period comparison is impossible in the traditional sense. Switch the analysis mode to structure analysis: focus on what the current cost structure implies rather than how it changed.

2. Highly Seasonal Business (Retail, Tax Services, Agriculture, Events)

Sequential quarter-over-quarter comparison is meaningless for a seasonal business and will generate false alarms. Q1 for a ski resort will always look terrible compared to Q4.

3. Multi-Segment or Multi-Product P&L

Consolidated P&L analysis can be deeply misleading when segments have different margin profiles, growth rates, and cost structures.

4. Startup or Pre-Profitability Business with Negative Margins

Standard P&L analysis framed around margin improvement is appropriate only when the losses are a strategic choice with a visible path to profitability. Undifferentiated losses require a different frame.

5. Acquisition-Related P&L Distortions

When a business has made an acquisition in the analysis window, the P&L is not comparable across periods on a reported basis without adjustment.

6. Non-Standard or Recast P&L Formats

Accounting systems (QuickBooks, NetSuite, Xero, Sage) often generate P&L reports in formats that do not match analytical conventions -- expenses listed without sign, COGS mixed with OpEx, multiple revenue lines without subtotals.

7. FX and Multi-Currency P&L

A P&L that blends results across geographies in different currencies can show phantom variances that are entirely attributable to exchange rate movements rather than operational performance.


Example

Input: "Can you analyze our Q3 P&L? We're a B2B SaaS company. Here's the data:

Revenue: Subscription $1,840K actual vs $2,000K budget. Professional Services $210K actual vs $150K budget. Total Revenue $2,050K actual vs $2,150K budget.

COGS: Hosting/Infrastructure $185K actual vs $170K budget. Customer Success salaries $220K actual vs $200K budget. Professional Services delivery $168K actual vs $120K budget. Total COGS $573K actual vs $490K budget.

OpEx: Sales & Marketing $620K actual vs $580K budget. R&D $410K actual vs $400K budget. G&A $195K actual vs $180K budget.

Prior quarters: Q1 Total Revenue $1,820K, Gross Profit $1,190K. Q2 Total Revenue $1,940K, Gross Profit $1,280K.

D&A is $45K per quarter, included in G&A. One-time item: $38K legal settlement paid in Q3, included in G&A actual."


Output:

P&L Analysis: B2B SaaS Company -- Q3 Actual vs. Budget

Prepared for: Management team

Analysis type: Actual vs. Budget, with sequential trend (Q1--Q3)

Materiality threshold applied: $15,000 or 5%, whichever is first breached


Executive Summary

Q3 total revenue of $2,050K missed budget by $100K (4.7%), driven entirely by a $160K shortfall in subscription revenue that was partially offset by a $60K professional services outperformance. Gross margin deteriorated to 72.1% from a 72.1% budget target -- but this masks two opposing forces: subscription gross margin held while professional services margins compressed severely due to delivery cost overruns. More critically, excluding a $38K one-time legal settlement, adjusted G&A was in line with budget, but reported EBIT missed plan by $253K. The primary action required is an immediate review of professional services pricing and scoping -- delivery costs of $168K against $210K in revenue represents a 20.0% PS gross margin compared to the 20.0% budget implied margin, but the absolute overspend on delivery is a structural risk if PS volume grows.


P&L with Variance Analysis

| Line Item | Actual ($K) | Budget ($K) | Var ($K) | Var (%) | F/U | Type |

|------------------------------------|------------|------------|---------|---------|-----|------|

| Subscription Revenue | 1,840 | 2,000 | (160) | (8.0%) | U | T/S |

| Professional Services Revenue | 210 | 150 | 60 | 40.0% | F | T |

| Total Revenue | 2,050 | 2,150 | (100) | (4.7%) | U | |

| Hosting / Infrastructure | (185) | (170) | (15) | (8.8%) | U | S |

| Customer Success Salaries | (220) | (200) | (20) | (10.0%) | U | S |

| PS Delivery Costs | (168) | (120) | (48) | (40.0%) | U | S |

| Total COGS | (573) | (490) | (83) | (16.9%) | U | |

| Gross Profit | 1,477 | 1,660 | (183) | (11.0%) | U | |

| Gross Margin % | 72.1% | 77.2% | (5.1pp) | | U | |

| Sales & Marketing | (620) | (580) | (40) | (6.9%) | U | S |

| Research & Development | (410) | (400) | (10) | (2.5%) | F | -- |

| G&A (reported) | (195) | (180) | (15) | (8.3%) | U | OT |

| -- of which: Legal settlement | (38) | -- | (38) | | U | OT |

| G&A adjusted (ex-settlement) | (157) | (180) | 23 | 12.8% | F | S |

| Total OpEx | (1,225) | (1,160) | (65) | (5.6%) | U | |

| OpEx as % of Revenue | 59.8% | 54.0% | (5.8pp) | | U | |

| EBITDA (reported) | 252 | 500 | (248) | (49.6%) | U | |

| D&A addback | 45 | 45 | -- | | | |

| EBIT (reported) | 207 | 455 | (248) | (54.5%) | U | |

| EBITDA adjusted (ex-settlement)| 290 | 500 | (210) | (42.0%) | U | |

| EBITDA Margin % (reported) | 12.3% | 23.3% | (11.0pp)| | U | |

| EBITDA Margin % (adjusted) | 14.1% | 23.3% | (9.2pp) | | U | |

| Net Income (reported) | 207 | 455 | (248) | (54.5%) | U | |

| Net Margin % (reported) | 10.1% | 21.2% | (11.1pp)| | U | |

F = Favorable, U = Unfavorable | OT = One-Time, T = Timing, S = Structural

Note: No interest or tax figures provided; Net Income approximated as EBIT. Actual net income will differ if the business carries debt or has tax obligations.


Margin Trend Analysis (Q1--Q3)

| Metric | Q1 | Q2 | Q3 Actual | Q3 Budget | Trend Direction |

|----------------------------|-----------|-----------|-----------|-----------|----------------------------|

| Gross Margin % | 65.4% | 65.9% | 72.1% | 77.2% | Expanding but below budget |

| S&M as % of Revenue | N/A* | N/A* | 30.2% | 27.0% | Above target |

| R&D as % of Revenue | N/A* | N/A* | 20.0% | 18.6% | Slightly above target |

| G&A as % of Revenue | N/A* | N/A* | 9.5% | 8.4% | Above target (legal event) |

| EBITDA Margin % (reported) | N/A* | N/A* | 12.3% | 23.3% | Below target |

| Net Margin % (reported) | N/A* | N/A* | 10.1% | 21.2% | Below target |

*Q1 and Q2 OpEx detail not provided. Gross profit provided for trend analysis only.

Trend interpretation: Gross margin has improved 6.7pp from Q1 (65.4%) to Q3 (72.1%), which is a strong positive signal on unit economics -- the core subscription product is getting more efficient to deliver. However, Q3 gross margin fell 5.1pp below the 77.2% budget, entirely driven by professional services delivery cost overruns and CS headcount growing ahead of revenue. The improvement from Q1 to Q3 indicates the trajectory is right; the miss versus budget indicates execution gaps in Q3 specifically.


Variance Bridge: Gross Margin % (Actual 72.1% vs. Budget 77.2%)

Budget Gross Margin %:                              77.2%
-- Effect of subscription revenue shortfall
   ($160K less revenue, subscription COGS flat):   (5.7pp)  [Fixed COGS costs now spread over smaller revenue base]
+ Effect of PS revenue outperformance
   ($60K incremental PS revenue at low margin):    +0.8pp   [PS gross margin ~20%, dilutive to blended margin]
-- Infrastructure cost overrun ($15K):             (0.7pp)
-- CS salaries above budget ($20K):                (1.0pp)
-- PS delivery overrun ($48K):                     (2.3pp)
+ Natural offset from lower revenue base:          +3.8pp   [COGS ratios improve slightly on mixed volume]
= Actual Gross Margin %:                            72.1%
Variance:                                          (5.1pp)  Unfavorable

Key Variance Drivers

Driver 1: Subscription Revenue Shortfall -- Unfavorable ($160K) (8.0%) -- Type: Timing / Structural (TBD)

Driver 2: Professional Services Delivery Cost Overrun -- Unfavorable ($48K) (40.0%) -- Type: Structural

Driver 3: Customer Success Salaries Above Budget -- Unfavorable ($20K) (10.0%) -- Type: Structural

Driver 4: Sales & Marketing Overspend -- Unfavorable ($40K) (6.9%) -- Type: Structural


Quality-of-Earnings Notes


Recommendations

| # | Action | Linked Driver | Est. Impact | Timeframe | Priority |

|----|-----------------------------------------------------------------------------------------------|---------------|-------------------|---------------|--------------|

| 1 | Obtain ARR bridge for Q3 (new, expansion, churn) to classify subscription miss as timing vs. structural; reforecast annual P&L accordingly | Driver 1 | Determines $0--

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.