How to Analyze Your Investment Portfolio With AI
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.
Exploring more wealth-building tools? Browse our full Investing Tools & Learning Hub for apps, screeners, and beginner strategies.
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
Best Model for Financial Reasoning: Analyzing investment asset allocations and corporate filings requires multi-step deductive accuracy and large context windows. Check our Frontier AI Leaderboard to see where Claude Opus 5.5 (Intelligence Index 58) and Gemini 4 Argon (2M context window) rank for complex data synthesis.
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.
Drawdown history is where this bites hardest. Ask ChatGPT how far your exact mix fell in 2020 or 2022 and you get a confident estimate, not a calculation. For that one number, a free browser tool called PortfolioAutopsy reads the same Fidelity, Schwab, or Vanguard positions file and replays your current weights over daily prices back to 1999: worst 12 months, deepest drawdown, and the odds of a loss over 1, 3, and 5 years. We uploaded a Fidelity export with eight holdings on October 15, 2026. It recognized every line including the money-market cash, and its single-ticker figures matched the numbers we know (SPY about 55% down in 2008 to 2009, QQQ 83% after 2000, BND 18.5% in 2022). Two limits: it is a student-built public beta with no company behind it, and the analysis only starts once most of your holdings existed, so a VOO-heavy portfolio never sees 2008 at all. Its crash replays use preset mixes, not your file. Nothing changes hands for this mention.
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.
Top Frontier Models for Financial & Data Reasoning
Empirical rankings sourced from Artificial Analysis, Arena.ai, LLM Stats & BenchLM.
Related Articles

How to Use AI to Analyze Earnings Calls (Free Workflow)
Use ChatGPT, Claude, or Perplexity to summarize and analyze earnings call transcripts. Free sources, prompts, and a step-by-step workflow included.

AI vs. Traditional Stock Screeners: Which Should You Use?
ChatGPT and Perplexity vs. Finviz and TradingView for stock screening. We compare features, accuracy, and pricing to help you pick the right approach.

10 Stock Research Prompts That Return Usable Answers
Ten prompts for researching a stock over a lunch break, what the answers are actually good for, and the points where the model quietly stops being reliable.
