Skip to content

A Stock Portfolio Calculator that helps you calculate your total profit or loss from stock investments. Just enter the buy price, sell price, number of shares, and brokerage (if any), and the calculator will show you the total profit/loss, profit percentage, and net return. Built with Next.js, TypeScript, and Tailwind CSS.

Notifications You must be signed in to change notification settings

Alirazahaider/stock-portfolio-calculator

Repository files navigation

Next.js Stock Portfolio Calculator

Stock Portfolio Calculator Screenshot

Live Demo: stockfolio-calculator.vercel.app/

🚀 Features

📝 Portfolio Management

  • Add/edit stocks with ticker symbols (e.g., AAPL), purchase price, date, and notes
  • Real-time current price tracking (API-driven)
  • Bulk actions to update or delete multiple stocks

📊 Dashboard Insights

Metric Example Value
Total Investment $20,475.00
Current Value $54,908.00 (+168.17%)
Best Performer FACIL (+604.20%)

📈 Visual Analytics

  • Portfolio Distribution pie chart
  • Profit/Loss Breakdown per stock (with % change)

🔧 Interactive UI

  • Search/filter stocks
  • Sort by profit, value, or ticker

🛠️ Tech Stack

  • Frontend: Next.js + TypeScript
  • Styling: Tailwind CSS
  • Deployment: Vercel

🏁 Quick Start

git clone https://github.com/Alirazahaider/stock-portfolio-calculator.git
cd stock-portfolio-tracker
npm install
npm run dev

💌 Get In Touch

Thank you for checking out this project! If you have any questions, suggestions, would like to collaborate, or need my development services:

Email LinkedIn Portfolio

⭐ Support the project by starring the repository! GitHub stars

About

A Stock Portfolio Calculator that helps you calculate your total profit or loss from stock investments. Just enter the buy price, sell price, number of shares, and brokerage (if any), and the calculator will show you the total profit/loss, profit percentage, and net return. Built with Next.js, TypeScript, and Tailwind CSS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published