How to Analyze Your Investment Portfolio With ChatGPT and Claude
Upload your brokerage CSV to ChatGPT or Claude and get instant portfolio analysis. Step-by-step guide with prompts for allocation, risk, and rebalancing.

You don’t need a Bloomberg Terminal or a finance degree to analyze your investment portfolio properly. You just need a CSV export from your broker and an AI chatbot.
I’ve been using ChatGPT and Claude to analyze portfolios, and it’s genuinely impressive what a $20/month subscription can do, sector breakdowns, risk analysis, expense ratio audits, and rebalancing suggestions in minutes.
Here’s exactly how to do it, step by step.
This article is for educational purposes only and does not constitute financial advice. Always verify AI-generated analysis against primary sources before making investment decisions.
What You Need
- A brokerage account with export capability (Fidelity, Schwab, Vanguard, E*TRADE, etc.)
- ChatGPT Plus ($20/month) or Claude Pro ($20/month)
- 10 minutes
That’s it. No coding, no plugins, no third-party tools.
Step 1: Export Your Portfolio Data
Log into your brokerage and export your holdings as a CSV or Excel file. Most brokers have this under “Positions” or “Portfolio” → “Export” or “Download.”
What to include:
| Column | Why |
|---|---|
| Ticker/Symbol | Identifies each holding |
| Shares/Quantity | Position size |
| Current Value | Portfolio weight calculation |
| Cost Basis | Gain/loss analysis |
| Expense Ratio | Fee optimization |
| Asset Class/Type | Allocation breakdown |
What to remove before uploading:
- Account numbers
- Social Security numbers
- Personal address or banking info
Keep it to positions and numbers only. Both ChatGPT and Claude on paid plans state they don’t train on your data, but there’s no reason to upload sensitive identifiers.
Step 2: Upload and Get Your First Analysis
Using ChatGPT Plus
ChatGPT’s Advanced Data Analysis runs Python in a sandbox, so it can parse your CSV automatically.
Upload your file and use this prompt:
Analyze my investment portfolio from the attached CSV. Provide:
- Total portfolio value and number of positions
- Sector allocation breakdown (pie chart)
- Asset class split (stocks vs bonds vs ETFs vs cash)
- Top 5 largest positions by weight
- Any position that’s more than 15% of the portfolio (over-concentration risk)
- Average expense ratio across all holdings
ChatGPT will generate charts, tables, and a written summary. It usually takes 30-60 seconds.
Using Claude Pro
Claude handles file uploads differently, it reads the content but doesn’t run code in a sandbox like ChatGPT.
Upload your file and use this prompt:
I’ve uploaded my investment portfolio. Please analyze it and provide:
- A summary of total value and position count
- Sector allocation and any over-concentration
- Asset class breakdown
- The top 5 holdings by portfolio weight
- Suggestions for improving diversification
Claude’s output will be more text-heavy with tables rather than interactive charts. Its strength is connecting the analysis to broader financial context because of its larger context window.
Step 3: Deep Dive Prompts
Once you have the overview, go deeper with these follow-up prompts:
Risk Analysis
Calculate the overlap between my ETFs. Are any of my holdings essentially duplicating each other? Show the top 10 overlapping stocks across all my ETFs.
Fee Optimization
List every holding with an expense ratio above 0.20%. For each one, suggest a lower-cost alternative that tracks a similar index. Show the annual fee savings if I switched.
Tax-Loss Harvesting
Based on my cost basis data, which positions are currently at a loss? For each loss position, calculate the potential tax savings at a 24% federal tax rate, and suggest a similar (but not substantially identical) replacement fund.
Dividend Analysis
Analyze the dividend yield of my portfolio. What’s my estimated annual dividend income? Which holdings contribute the most? Is my portfolio tilted toward growth or income?
Rebalancing
My target allocation is 80% stocks / 15% bonds / 5% cash. How far off am I? Tell me exactly what to buy and sell to rebalance, with dollar amounts.
Step 4: Compare Against Benchmarks
This is where AI really shines, contextual analysis that a static screener can’t do.
Compare my portfolio’s sector allocation against the S&P 500. Where am I overweight? Where am I underweight? Is this intentional tilting or accidental concentration?
My portfolio returned 12% last year. How does that compare to a simple VTI (total market) or a 60/40 portfolio over the same period? Am I being rewarded for the extra complexity?
ChatGPT vs. Claude: Which Is Better for This?
| Feature | ChatGPT Plus | Claude Pro |
|---|---|---|
| CSV parsing | Excellent, auto-detects columns | Good, reads content, no code sandbox |
| Charts | Interactive, downloadable | Text-based tables |
| Context window | 128K tokens | 200K tokens |
| Multi-document | Limited | Excels, analyze portfolio + 10-K together |
| Expense | $20/month | $20/month |
| Best for | Spreadsheet analysis, visualizations | Deep document analysis, narrative insights |
My recommendation: Start with ChatGPT for the initial CSV analysis and charts. Use Claude when you want to combine your portfolio data with earnings reports, annual filings, or other documents for deeper context.
Dedicated AI Portfolio Tools
If you want something more hands-off, these tools connect directly to brokerage accounts:
| Tool | What It Does | Price |
|---|---|---|
| PortfolioPilot | Auto-recommendations based on risk/tax/goals | Free + premium |
| Mezzi | Cross-account analysis, hidden risk detection | Free + premium |
| Fiscal.ai | Institutional-grade data, earnings analysis | Free tier, Plus ~$29/month |
These are more polished but less flexible than ChatGPT/Claude. You can’t ask custom questions the same way.
What AI Gets Wrong (Important)
Hallucinated numbers. AI sometimes generates plausible but wrong financial figures, especially for smaller companies. Always cross-check specific numbers against your broker’s data or Yahoo Finance.
No real-time data. Neither ChatGPT nor Claude has live market prices. Your analysis is only as current as your CSV export.
Over-confident recommendations. AI will suggest rebalancing moves without knowing your tax situation, time horizon, or whether you’re in a taxable vs. retirement account. Take suggestions as starting points, not instructions.
Expense ratio databases can be outdated. AI training data may have older expense ratios. Verify current fees on your fund provider’s website or on Morningstar and Yahoo Finance.
The Bottom Line
Uploading a portfolio CSV to ChatGPT or Claude gives you analysis that used to require expensive software or a financial advisor meeting. It’s not perfect, you need to verify the numbers and apply your own judgment, but as a first pass, it’s remarkably powerful.
The workflow:
- Export CSV from your broker (2 minutes)
- Upload to ChatGPT for visual analysis (5 minutes)
- Use follow-up prompts for risk, fees, and rebalancing (10 minutes)
- Verify critical numbers against primary sources (5 minutes)
Twenty minutes for a comprehensive portfolio checkup. Not bad for free (well, $20/month).
Try It: Free Portfolio Analyzer
Before uploading to ChatGPT or Claude, get an instant preview with our free browser-based tool below. It analyzes your CSV locally, your data never leaves your device, and generates pre-filled AI prompts you can copy straight into your chatbot of choice.
Related: If you’re using AI for stock research, check out our guide on AI vs. traditional stock screeners and how to use AI for earnings call analysis.
Disclaimer: This article is for informational and educational purposes only. Nothing here constitutes financial advice. Past performance doesn’t predict future results. Always do your own research and consider consulting a qualified financial advisor before making investment decisions.
Free Portfolio Analyzer
Upload your brokerage CSV, everything stays in your browser. Nothing is sent to any server.
Drop your CSV here or click to upload
Supports exports from Fidelity, Schwab, Vanguard, E*TRADE, and most brokers
Total Value
,
Positions
,
Avg Expense
,
Top Holding
,
Allocation Breakdown
Top 10 Holdings
All Holdings
| Symbol | Name | Value | Weight | Sector | Gain/Loss |
|---|
AI Analysis Prompts
Pre-filled with your portfolio data. Copy and paste into ChatGPT or Claude.
Related Articles

ChatGPT for Stock Research: 10 Prompts I Actually Use
I use ChatGPT to research stocks during lunch breaks. Here are 10 prompts that actually work, what ChatGPT gets right, and where it falls short in 2026.

How to Use AI for Job Interview Prep: Full Guide
Use ChatGPT or Claude to research companies, craft STAR answers, run mock interviews, and write follow-up emails. Copy-paste prompt templates included.

12 Best Custom GPTs for Productivity at Work (2026)
I browsed and tested 50+ custom GPTs from the ChatGPT GPT Store so you don't have to. Here are the 12 that actually save time for writing and research.
