AI is becoming a standard tool for financial analysts — accelerating model building, earnings analysis, and data interpretation. This guide covers practical applications across different finance workflows.
Important Caveat
AI can accelerate financial analysis but cannot replace judgment. Always verify:
- Numbers (AI can make arithmetic errors)
- Assumptions (AI makes them — check they’re reasonable)
- Interpretations (AI may miss domain-specific context)
Use AI for drafting and speed, not as the final authority.
Earnings Report Analysis
Analyze this earnings report excerpt:
[paste earnings release or transcript]
Provide:
1. Revenue analysis: growth vs. prior quarter and year, beat/miss vs. expectations
2. Profitability: gross margin, operating margin, net margin trends
3. Guidance: what management said about next quarter/year
4. Key risks mentioned by management
5. Three most important metrics to watch next quarter
6. Sentiment: is management tone more/less confident than last quarter?
Context: Company is [description], sector is [sector].
Comparing Multiple Earnings Reports
Compare these earnings results across [Company A] and [Company B] in [sector]:
[Company A data]
[Company B data]
Analyze:
1. Who performed better on revenue growth?
2. Who has better margin trajectory?
3. Who gave stronger guidance?
4. What does this tell us about competitive dynamics in [sector]?
Financial Model Building
DCF Model Framework
Help me build a DCF model for [Company].
Here's what I know:
- Current revenue: $[X]M
- Revenue growth rate: [X]% (past 3 years average)
- EBITDA margin: [X]%
- Capex as % of revenue: [X]%
- Working capital changes: [X]%
- Tax rate: [X]%
- Shares outstanding: [X]M
- Current share price: $[X]
- Net debt: $[X]M
Provide:
1. 5-year revenue projection with your assumptions
2. Free cash flow calculation for each year
3. WACC estimation (justify each component)
4. Terminal value calculation (justify multiple/growth rate)
5. Implied share price
6. Sensitivity table: price at different growth rates and WACC assumptions
Excel Formula Generation
Write Excel formulas for a financial model:
I need:
1. Revenue forecast that grows at [X]% per year from cell B5
2. COGS as [X]% of revenue
3. Gross profit calculation
4. SG&A that starts at $[X]M and grows [X]% per year
5. EBITDA margin calculation
6. Net income after [X]% tax rate
7. Free cash flow = EBITDA - Capex - Changes in Working Capital
Cells: Revenue in row 5 (B5-G5 for years 1-6), everything below follows standard income statement structure.
Output the formula for each cell.
SQL for Financial Data
I have these financial database tables:
transactions(id, date, amount, category, account_id, customer_id)
accounts(id, customer_id, account_type, balance, created_date)
customers(id, name, segment, acquisition_date)
Write SQL queries for:
1. Monthly recurring revenue by segment (last 12 months)
2. Customer churn rate by cohort (monthly cohorts)
3. Average revenue per user by acquisition channel
4. Top 20% of customers by revenue contribution
5. Revenue trend with 3-month moving average
Financial Report Writing
Write an executive summary for this financial report:
Company: [Company]
Period: Q[X] [Year]
Key results:
- Revenue: $[X]M ([X]% growth YoY)
- Gross margin: [X]% (vs [X]% last year)
- EBITDA: $[X]M ([X]% margin)
- Net income: $[X]M
- Key event: [any major development]
Audience: Board of directors
Tone: Professional, analytical, brief
Length: 3-4 paragraphs
Include: What went well, what missed expectations, outlook for next quarter
Variance Analysis
Explain these budget variances for our finance team presentation:
Budget vs. Actual results:
Revenue: Budget $[X]M, Actual $[X]M, Variance [X]%
COGS: Budget $[X]M, Actual $[X]M, Variance [X]%
SG&A: Budget $[X]M, Actual $[X]M, Variance [X]%
Marketing: Budget $[X]M, Actual $[X]M, Variance [X]%
Context: [any relevant business context]
Write explanations for each variance that:
1. State whether it's favorable or unfavorable
2. Explain likely causes (given the context)
3. Note if it's likely recurring or one-time
4. Suggest next steps if action is needed
Python for Financial Analysis
Fetching and Analyzing Stock Data
import yfinance as yf
import pandas as pd
def analyze_stock(ticker: str, period: str = "2y") -> dict:
stock = yf.Ticker(ticker)
hist = stock.history(period=period)
# Basic metrics
returns = hist['Close'].pct_change()
return {
"annual_return": returns.mean() * 252,
"annual_volatility": returns.std() * (252 ** 0.5),
"sharpe_ratio": (returns.mean() * 252) / (returns.std() * (252 ** 0.5)),
"max_drawdown": (hist['Close'] / hist['Close'].cummax() - 1).min(),
"current_price": hist['Close'].iloc[-1],
"52w_high": hist['Close'].rolling(252).max().iloc[-1],
"52w_low": hist['Close'].rolling(252).min().iloc[-1],
}
result = analyze_stock("AAPL")
print(f"Sharpe Ratio: {result['sharpe_ratio']:.2f}")
print(f"Max Drawdown: {result['max_drawdown']:.1%}")
Financial Ratios from CSV
import pandas as pd
def calculate_ratios(df: pd.DataFrame) -> pd.DataFrame:
ratios = pd.DataFrame()
ratios['gross_margin'] = df['gross_profit'] / df['revenue']
ratios['operating_margin'] = df['operating_income'] / df['revenue']
ratios['net_margin'] = df['net_income'] / df['revenue']
ratios['revenue_growth'] = df['revenue'].pct_change()
ratios['ebitda_margin'] = (df['operating_income'] + df['da']) / df['revenue']
if 'total_assets' in df.columns:
ratios['roa'] = df['net_income'] / df['total_assets']
if 'shareholders_equity' in df.columns:
ratios['roe'] = df['net_income'] / df['shareholders_equity']
return ratios
AI Prompts for Specific Finance Tasks
Loan/Investment Memo
Write an investment memo for this opportunity:
Asset: [description]
Investment amount: $[X]M
Expected return: [X]% per year
Investment horizon: [X] years
Key risks: [list]
Format: Standard investment memo with executive summary, opportunity analysis, risk factors, and recommendation.
Audience: Investment committee
Cash Flow Forecast
Help me create a 12-month cash flow forecast.
Current cash: $[X]M
Monthly burn: $[X]M
Expected revenue: starts at $[X]K/month, growing [X]% monthly
Key expenses: [list with amounts]
One-time expenses: [list]
Planned fundraise: $[X]M in month [X]
Create:
1. Month-by-month forecast table
2. Runway calculation (months until cash out)
3. Key assumptions and their sensitivity
4. Warning thresholds (when to take action)
Limitations of AI in Finance
Hallucination risk: AI can invent plausible-sounding financial data. Never trust AI-generated numbers without a source.
No real-time data: Base models have knowledge cutoffs. For current prices or news, use tools with real-time access (Perplexity, Bloomberg AI).
Regulatory risk: AI-generated financial advice may not comply with applicable regulations. Keep humans in the decision loop.
Model errors: AI financial models often contain subtle errors. Validate formulas and check outputs against manual calculations.
Best practice: Use AI to draft and structure, then review every number yourself.