Produce both a bottom-up and a top-down analysis for every engagement. Both methods are required — they serve different purposes and must be reconciled. The goal is a defensible, sourced output — not a fast estimate.
Trigger on any prompt that contains:
Before calculating, check the examples/ directory for a file matching the product's category. Load the closest match to calibrate data sources, filter logic, and ACV anchors before you begin.
FileUse when product is...examples/b2b-saas.mdSoftware / AI tool sold to businessesexamples/b2c-consumer-brand.mdConsumer packaged goods, DTC brands, subscriptionsexamples/b2b-physical.mdPhysical goods or materials sold to businesses
If no exact match exists, load the closest file and adapt.
Before searching or calculating, classify the product along these two axes. The classification directly determines which data sources to use and which pricing method applies.
CodeTypeRevenue unitPricing anchorB2B-SaaSSoftware sold to businessesAnnual contract (ACV)10–20% of economic value createdB2B-PhysicalPhysical goods sold to businessesPer-unit price × annual volumeGross margin benchmarks by industryB2C-BrandConsumer product (any category)Revenue per customer per yearAvg. purchase price × purchase frequencyB2C-SubscriptionConsumer subscriptionMonthly/annual subscription feeStated price or comp pricingMarketplace/PlatformTakes % of GMVTake rate × GMVIndustry take rate benchmarks
Since accuracy and reliability are key of this task, make sure you collect enough reliable data from reliable sources before the calculation. Limited estimation is fine with enough evidence support, but any kind of data making up or hallucination without evidence during the calculation and output phase is a fraud.
Before any market data search, lock down exactly what the product sells, to whom, and at what price.
Required inputs:
If price is unknown: Search "[product category] average price" OR "[closest competitor] pricing" and anchor to the median. For B2B-SaaS, also apply the 10–20% value rule: price = 10–20% of annual economic value the product creates for the customer.
Output of Step 1: A single sentence — "The revenue unit is [X] sold to [Y] at [Z]/year."
TAM = the maximum theoretical revenue if every potential buyer purchased the product.
For B2B products:
"NAICS [code] number of firms US" or site:siccode.com NAICS [code]For B2C products:
Search queries to use:
"[industry] number of [businesses/firms/brands] US 2024""NAICS [code] firm count employees revenue""[consumer category] number of [households/users/owners] US""[category] market size 2024" (for cross-reference only — not the primary method)"[category] software/product market size 2024" or "[category] industry revenue US 2024"Rule: Bottom-up is the primary method. Top-down is the cross-check. Both results should be reported. If they diverge significantly (>2×), explain why (e.g. top-down only counts current spenders; bottom-up counts total potential).
N firms × $X ACV = $Y or N consumers × $Z annual spend = $YSAM = the subset of TAM that the specific product can actually serve today, given its business model, geography, language, and product fit.
Universal filter checklist — apply all that are relevant:
FilterTypical reductionHow to estimateGeographyVariesIf US-only product, filter out non-US. If city-level, apply metro population fraction.Product-fit segment30–60% reductionRemove segments the product doesn't serve (e.g. residential-only for commercial SaaS; solo operators who can't justify the cost)Tech/channel readiness10–30% reduction% of target customers with internet access, cloud tools, or relevant distribution channel accessLanguage/regulatoryVariesOnly relevant for global productsWillingness to pay tier20–40% reductionRemove segments priced out of the product's tier
Formula: SAM = TAM × Filter₁ × Filter₂ × ... × Filterₙ
Blended ACV for SAM: If there are multiple customer segments (SME vs. mid-market, or mass vs. premium), calculate a weighted average ACV:
Blended ACV = (Segment_A_ACV × weight_A) + (Segment_B_ACV × weight_B)
Search queries for filter data:
"[industry] percentage [commercial/residential/enterprise/SMB]""[industry] small business cloud software adoption rate""[consumer category] premium vs mass market share"SOM = the portion of SAM the product can realistically capture in a defined timeframe (typically 3 years / Year 1–3 ramp).
Penetration rate benchmarks by product type:
Product typeYear 1Year 3Source basisNew B2B SaaS (no category)0.1–0.3% of SAM1.5–3% of SAMAndreessen Horowitz, OpenView benchmarksNew B2B SaaS (established category)0.3–0.8%3–7%Category incumbents' early growth dataNew B2C consumer brand (retail)0.05–0.2% of SAM0.5–2%Nielsen new brand launch dataNew B2C DTC subscription0.1–0.5%1–4%DTC cohort benchmarksNew B2B physical product0.2–0.5%2–5%Trade distribution ramp benchmarks
Cross-validation method: Find 2–3 comparable companies (same category, similar stage) and anchor SOM to their reported early ARR/revenue. Search:
"[similar company] [Series A / early revenue / ARR] raised [year]"
Formula:
After running both methods:
Product typeTypical ACV/ASPNotesSMB B2B SaaS (1–50 employees)$3,000–$15,000/yr10–20% of value createdMid-market B2B SaaS (50–500 employees)$15,000–$60,000/yrEnterprise B2B SaaS (500+ employees)$60,000–$500,000+/yrConsumer subscription (premium)$100–$600/yrConsumer packaged goods (premium)$30–$150/order, 6–12×/yrB2B physical product (SMB)$5,000–$50,000/yrDepends heavily on industryB2C DTC brand (avg. LTV proxy)2–3× first-order value
ErrorHow to catch it"1% of a $10B market" without proofAlways verify with bottom-up customer countTop-down only, no bottom-upAlways run both methodsUsing global TAM when product is US-onlyApply geography filter explicitlyIncluding non-buyers in TAM (e.g. residential firms in a commercial B2B)Apply product-fit filter before TAM finalisationSOM penetration rate not benchmarkedAlways cite at least one comp companyACV not grounded in value or comp pricingAlways show the value math or comp referenceTreating TAM as "market size from report" uncriticallyCheck the report's definition matches your product's scopeSingle number without rangeAlways show low–high range
IndustryBest firm-count sourceBest market-size sourceKey trade associationConstruction / TradesNAICS via siccode.com or CensusIBISWorld, CFMA BenchmarkerCFMA, AGC, NECAPet / Consumer packaged goodsCensus NAICS 311APPA, Grand View, IMARCAPPA, PFIFood & BeverageCensus NAICS 311/312Mordor, Grand View, MintelFMI, GMABeauty / Personal careCensus NAICS 325620Euromonitor, Grand ViewPBA, CEWFashion / ApparelCensus NAICS 315McKinsey Fashion Report, StatistaAAFASaaS / SoftwareCrunchbase, G2 categoriesGartner, IDC, ForresterVariesAutomotiveNAICS 441/336Ward's Auto, IHS MarkitNADA, SEMAB2B PackagingCensus NAICS 322/326Grand View, MordorPMMI, FPA
The output file is where you calculations are made. After collecting necessary data, make a step-by-step analysis & calculation on the file, finally yielding a summary and a comparison. Produce a structured markdown document containing:
The following is an example markdown output with a structure you should follow:
"""
AI-powered invoicing automation for HVAC and Electrical subcontractors — United States
InputValueSourceHVAC firms (NAICS 238220)88,738siccode.com / US CensusElectrical firms (NAICS 238210)55,951siccode.com / US Census% doing GC-facing commercial work55%SBA subcontractor mix dataACV — HVAC SME tier$7,500/yr$1.5M avg. revenue × 0.5%; CFMA 2024ACV — Electrical SME tier$10,000/yr$2.0M avg. revenue × 0.5%; CFMA 2024ACV — mid-market tier (>$5M rev)$24,000/yrValue-based; comp: Siteline pricingtext
HVAC SME (48,806 × 82%): 40,021 × $7,500 = $300M
HVAC mid-market (48,806 × 18%): 8,785 × $24,000 = $211M
Electrical SME (30,773 × 82%): 25,234 × $10,000 = $252M
Electrical mid-market (30,773×18%): 5,539 × $24,000 = $133M
Value-based ceiling (5% leakage × 10–20% SaaS capture): ~$1.87B
→ TAM: $1.87B (range: $1.5B–$2.2B)
FilterReductionRemainingSourceRemove residential-only operators−40%47,748 firmsSBA / IBISWorld industry mixRemove solo / owner-only operators−35%31,037 firmsCensus nonemployer statisticsRemove cloud / tech-unready firms−25%23,278 firmsConstruction tech adoption surveys 2024text
Blended ACV:
SME tier (70%): $7,500 × 0.70 = $5,250
Mid-market (30%): $18,000 × 0.30 = $5,400
Blended: = $10,650/yr
23,278 firms × $10,650 + mid-market uplift ≈ $560M
→ SAM: $560M (range: $430M–$690M)
Year% of SAMARRCustomersYear 10.27%$1.5M140Year 20.85%$4.8M450Year 31.5–3.0%$8.4M–$16.8M790–1,580
Benchmark: 1.5–3% of SAM by Year 3 — a.H./OpenView SaaS benchmarks for new B2B entrant in established category
CompSignalPayraRaised $15M (Edison Partners); AP automation for construction subcontractorsSitelineRaised $18M Series A; subcontractor billing / SOV management, comparable ICPAdaptive Construction SolutionsBootstrapped to ~$5M ARR in 3 years; construction AR automation
→ SOM: $1.5M ARR (Year 1) / $8.4M–$16.8M ARR (Year 3), ~790–1,580 customers
text
Global construction accounting software (2025): $2.64B [Precedence Research]
× US share (76%): $2.0B
× AP/AR segment (54.4%): $1.09B
→ TAM: $1.09B
text
Top-down TAM: $1.09B
× Specialty trade sub-share (~28%): $305M
× HVAC + Electrical only (~50%): $152M
→ SAM: $152M
text
SAM (top-down): $152M
× 3% Year 3 penetration: $4.6M
→ SOM: $0.4M ARR (Year 1) / $4.6M ARR (Year 3)
InputValue assumedSourceHVAC firms (NAICS 238220)88,738siccode.com / US CensusElectrical firms (NAICS 238210)55,951siccode.com / US Census% GC-facing commercial work55%SBA subcontractor mix dataAvg. HVAC subcontractor revenue$1.5M/yrCFMA 2024 BenchmarkerAvg. Electrical subcontractor revenue$2.0M/yrCFMA 2024 BenchmarkerSubcontractor net profit margin2.2–3.5%CFMA 2024 BenchmarkerProfit lost to unbilled/errors5% of revenueIndustry estimateGlobal construction accounting software market$2.64B (2025)Precedence ResearchAP/AR segment share54.4%Precedence ResearchCloud/tech readiness of small construction firms75%Construction tech adoption surveys 2024SaaS penetration benchmark (Year 3)1.5–3% of SAMa.H./OpenView SaaS benchmarksComp: Payra raise$15MEdison Partners announcementComp: Siteline raise$18M Series APublic announcement
Bottom-upTop-downTAM$1.87B$1.09BSAM$560M$152MSOM — Year 1 / Year 3$1.5M / $8.4M–$16.8M ARR$0.4M / $4.6M ARR
Bottom-up preferred — top-down counts only existing software spend and misses the large paper/spreadsheet segment. Use top-down as the floor / downside scenario. """