Investing

Build a Financial Ratio Analyzer with AI

Analyze company financials with key ratios including P/E, debt-to-equity, ROE, and current ratio with sector benchmarks. Build a comprehensive ratio analysis tool that lets investors and analysts evaluate company health, compare against peers, and quickly identify financial strengths and weaknesses.

Build Prompt

Copy this prompt into Claude Code
Build a static HTML financial ratio analyzer. Dark theme: background #0a0a0f, surfaces #12121a, borders #1a1a2a, accent #059669 (green). Data from inline `const COMPANIES = [...]` and `const SECTOR_BENCHMARKS = {...}`. Each company: ticker, name, sector, fiscalYear, revenue, netIncome, ebitda, totalAssets, totalLiabilities, shareholderEquity, currentAssets, currentLiabilities, cash, totalDebt, shares, price, eps, bookValuePerShare, freeCashFlow, capex, operatingCashFlow, dividendsPerShare, revenueGrowthYoY, netIncomeGrowthYoY. Include 20 companies across Technology, Healthcare, Finance, Energy, and Consumer sectors. Sector benchmarks: for each sector, store industry-average values for all key ratios. Computed ratios (calculate in JS): - Valuation: P/E, Forward P/E, P/B, P/S, EV/EBITDA, PEG ratio - Profitability: Gross Margin, Operating Margin, Net Margin, ROE, ROA, ROIC - Liquidity: Current Ratio, Quick Ratio, Cash Ratio - Leverage: Debt-to-Equity, Debt-to-EBITDA, Interest Coverage, Debt-to-Assets - Efficiency: Asset Turnover, Inventory Turnover, Days Sales Outstanding - Growth: Revenue Growth YoY, Net Income Growth YoY, FCF Growth Layout: Company selector dropdown or search. Ratio dashboard: 6 ratio category cards, each showing values as gauge-style SVG meters colored green/yellow/red vs benchmark. Comparison table: company vs sector average vs best-in-class for each ratio. 5-year trend chart: SVG line chart showing ratio history (use simulated historical data). Scoring panel: weighted composite score (0–100) with breakdown by category. Print/export button generates clean PDF-friendly layout. Read the guide at https://accessagent.ai/api/guide and follow it to deploy the site to AccessAgent.ai. My email is [your@email.com].

Make It Yours

Input Your Own Financials

Form to paste in any company's income statement and balance sheet numbers for instant ratio calculation.

Peer Group Builder

Select 3–5 companies and render a side-by-side ratio table for peer group competitive analysis.

Red Flag Detector

Automatically flag ratios outside safe thresholds with explanatory tooltips on what each signal means.

DuPont Decomposition

Break ROE into its three components (margin, turnover, leverage) with a visual decomposition diagram.

Ratio Glossary

Inline definitions for every ratio with formula, ideal range, and what high/low values indicate.

Altman Z-Score

Calculate bankruptcy prediction score and display on a gauge from Distress to Safe Zone.

Update Prompt

Update Prompt — Refresh financial data with latest filings
Update all COMPANIES data with the latest annual or quarterly financial figures from their most recent earnings filings. Recalculate sector benchmark averages. Flag any companies with significant ratio changes from prior period. Update fiscal year labels and redeploy.

SEO Tips

Monetization Ideas

Related Ideas

Ready to build your Financial Ratio Analyzer?

Copy the prompt above and paste it into Claude Code. Your ratio analyzer will be live in minutes.

Get Started