New Average Price: ₹–
📈 Stock Average Calculator
📊 Portfolio Info
Current Average: ₹–
Current Total Value: ₹–
After Buy Total Value: ₹–
✅ Overview:
The Stock Average Calculator is a simple, mobile-friendly web application designed to help investors and traders quickly determine the new average price of a stock after buying additional shares at a different price.
Whether you’re averaging down or averaging up, this tool gives you a clear view of your portfolio’s updated cost basis and value — instantly.
🎯 Key Features:
1. Input Fields:
- Total Stock Quantity You Hold
Enter the number of shares you already own. - Buying Price (Average)
The average price at which you bought your existing shares. - Quantity You Want to Buy
The number of new shares you plan to purchase. - Current Price (Buy Price Now)
The current price per share for your new purchase.
2. Main Output:
- 🟦 New Average Price
Displayed prominently at the top — shows your updated cost per share after the new purchase.
3. Detailed Portfolio Info:
- 💰 Current Average
Your current average price before the new buy. - 📈 Current Total Value
The total investment value of your existing shares. - 📊 After Buy Total Value
The total investment value after the new purchase (existing + new).
All amounts are shown in comma-separated ₹ (INR) currency format for better readability.
📱 Responsive Design:
- Fully responsive and optimized for mobile, tablet, and desktop views using flexbox and media queries.
- On smaller screens, components stack vertically for a smooth mobile experience.
🛠️ Built With:
- HTML5 – Form and layout structure
- CSS3 – Responsive and modern UI design
- Vanilla JavaScript – Real-time calculation and currency formatting
📌 Example Use Case:
You own 100 shares at ₹111. You want to buy 1000 more at ₹42.
The app calculates and tells you:
- 🎯 New Average: ₹48.27
- 💼 Your total portfolio value now: ₹53,100.00
🧠 Who Is This For?
- Retail Investors
- Stock Market Beginners
- Day Traders
- Long-Term Portfolio Holders
- Anyone wanting to track and optimize their stock entry prices
🔒 Privacy Friendly:
- No login required
- No data stored
- Runs entirely in your browser (client-side only)
🚀 Future Enhancements (Optional Ideas):
- Export results to PDF/CSV
- Add multiple stock entries
- Show profit/loss projection
- Support for foreign currencies
- Dark mode toggle 🌙
Now you Can Buy Stocks –