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 –