audit moat
Competitive moat — does the company have a durable advantage?
When to use
Buffett: "Only invest in companies with durable competitive advantages." Assess whether ROIC consistently exceeds the cost of capital, with stable margins.
Quick Start
# Full moat assessment
audit moat
# Custom discount rate
audit moat --wacc 0.12
# Custom tax rate
audit moat --tax 0.25
# Only last 5 years
audit moat --years 2020-2024
Command
audit moat [--years xxxx-yyyy] [--period q1|h1|9m|annual] [--wacc 0.xx] [--tax 0.xx] [--help]
| Parameter | Description | Default |
|---|---|---|
--years |
Year range | All years |
--period |
Fiscal period | annual |
--wacc |
Discount rate | 0.10 (10%) |
--tax |
Tax rate for NOPAT | 0.21 (21%) |
Core Metrics
| Metric | Formula | Meaning |
|---|---|---|
| ROIC Mean | Average capital return | |
| ROIC Stability | Return consistency | |
| Gross Margin CoV | Pricing power stability | |
| Revenue R² | Linear regression |
Growth consistency |
| Economic Moat | Value creation spread |
Where:
, when the sum is non-negative; the raw sum (no tax) when negative. Losses have no tax shield.- Negative NOPAT produces negative ROIC, which participates in the mean.
Key signals:
- ROIC > WACC → has moat
- ROIC < WACC → no moat, destroying value
- ROIC negative → operating loss, no moat
Advisory
ROIC Mean
| Status | Threshold |
|---|---|
[+] |
> 15% |
[~] |
Otherwise |
ROIC Stability
| Status | Threshold |
|---|---|
[+] |
StdDev < 5% |
[~] |
Otherwise |
Gross Margin Stability
| Status | Threshold | Threshold |
|---|---|---|
[+] |
CoV < 10% | CoV < 10% |
[~] |
Otherwise | Otherwise |
Economic Moat
| Status | Metric | Threshold |
|---|---|---|
[+] |
> 5% | > 5% |
[~] |
Otherwise | Otherwise |
Field IDs
Industrial
| Name | Industrial |
|---|---|
| Total Revenue | income:1101 |
| Gross Profit | income:1104 |
| Operating Profit | income:1116 |
| Asset Impairment Loss | income:1113 |
| Stockholders' Equity | balance_sheet:1371 |
| Short Term Debt | balance_sheet:1349 |
| Long Term Debt | balance_sheet:1358 |
| Cash and Cash Equivalents | balance_sheet:1304 |
| Short Term Investments | balance_sheet:1305 |
| Long Term Investments | balance_sheet:1324 |
| Financial Assets | balance_sheet:1329 |
Banking
| Name | Banking |
|---|---|
| Total Revenue | income:2101 |
Insurance
| Name | Insurance |
|---|---|
| Total Revenue | income:3101 |
Industry Routing
| Metric | Industrial | Banking | Insurance |
|---|---|---|---|
| ROIC Mean | Computed | - |
- |
| ROIC Stability | Computed | - |
- |
| Gross Margin CoV | Computed | - |
- |
| Revenue R² | Computed | Computed | Computed |
| Economic Moat | Computed | - |
- |
Banking/Insurance: only Revenue R² is available.
Output Example
MOAT ASSESSMENT
TICKER: [US.AAPL - Apple Inc.]
PERIOD: [2020-ANNUAL ~ 2024-ANNUAL]
Parameter Value
------------------
WACC 10%
[+] ROIC Mean: 28.4% (> 15% = high returns)
[+] ROIC Stability: 3.2% (StdDev < 5% = highly stable)
[+] Gross Margin Stability: 2.1% (CoV < 10% = stable pricing power)
[+] Economic Moat (ROIC-WACC): 18.4% (> 5% = creating economic value)
Metric Value
-----------------------------------
ROIC 5Y Mean 28.4%
ROIC Stability (σ) 3.2%
Gross Margin CoV 2.1%
Revenue Growth R² 0.94
Economic Moat (ROIC-WACC) 18.4%