Stock Average Calculator
Find your weighted average cost after buying the same stock more than once.
Purchase lots
Lot 1
Lot cost: —
Lot 2
Lot cost: —
A stock average calculator shows the real cost basis you carry after a series of buys. Enter each purchase as a lot with shares and price per share. Optional fees — a flat commission or other cash cost on that lot — are added to total invested so the average is not just a pretty fill price.
When lot sizes differ, averaging the prices themselves is misleading. Weighted average cost multiplies each price by the shares in that lot, adds fees, and divides by total shares. That is the number your brokerage cost basis should move toward, and it is the same math this page uses for break-even.
Add a current market price to see unrealized profit or loss versus your all-in spend. Market value is current price times total shares. Unrealized P/L is that value minus total invested, with a percentage against money actually put in. Use it before averaging down, after a drip of buys, or to check whether a target sale price gets you out whole.
Everything on this page runs in your browser. Lots never leave the device, and there is no account. Pair it with the UTM builder if you are tracking a finance campaign, or the UUID generator when you need local identifiers.
How to use the stock average calculator
- Add a lot for each purchase. Include fractional shares if you bought them.
- Enter shares and price per share. Add an optional fee for that lot.
- Use Add lot for more fills, or Remove to drop a row.
- Optionally enter the current price to see market value and unrealized P/L.
- Read weighted average cost, total shares, total invested, and break-even price.
Frequently asked questions
How does a stock average calculator compute weighted average cost?
It multiplies shares by price for each lot, adds optional fees, then divides total invested by total shares. Larger lots pull the average more than smaller ones, which is why a simple average of the prices is usually wrong.
Are fees included in the break-even price?
Yes. Break-even is total invested — share cost plus every lot fee — divided by total shares. That is the per-share sale price that recovers what you actually spent.
Can I add or remove lots after I start?
Yes. Use Add lot for each extra purchase and Remove to drop a row. Keep at least one lot. Fractional shares are allowed.
What is unrealized profit or loss in this tool?
If you enter a current price, unrealized P/L is market value minus total invested. A positive number means the position is above your all-in cost; a negative number means it is below.
Does this stock average calculator upload my trades?
No. Lots, fees, and the current price are calculated in your browser. Nothing is sent to a server or stored on our side.
Should I use average price without fees or weighted average cost?
Weighted average cost includes fees and is the figure to use for break-even. Average price without fees is useful if you want to see the fill prices alone.
Other tools
Finance
Paycheck Calculator Hourly
Gross pay per paycheck from an hourly rate or salary — weekly, biweekly, semimonthly, or monthly.
Finance
Emergency Fund Calculator
Target emergency savings from monthly essential expenses, plus the gap and months to fully fund.
Finance
Mortgage Recast Calculator
New monthly payment, payment drop, and interest savings after a lump-sum recast — same remaining term, not a refinance.
Finance
Refinance Calculator Auto Loan
Current vs new monthly payment, interest, fee break-even, and total cost for an auto loan refinance — all in the browser.
Finance
Real Estate Commission Calculator
Total commission, listing-side and buyer-side dollars, and seller net proceeds from a home sale — all in the browser.
Finance
Credit Utilization Calculator
Overall credit utilization %, available credit, per-card ratios, and dollars to pay to reach a target — all in the browser.
Finance
403b Calculator
Employee contributions, optional employer match, and projected 403(b) balance at retirement — all in the browser.
Finance
Monthly Budget Template
Monthly income and expense lines with totals, leftover surplus or deficit, and savings rate — all in the browser.
Finance
VAT Number Validator
VAT number validator and VAT number checker for EU (and legacy GB) IDs — format, country, and check digits in the browser. Not a VIES lookup.
Finance
Break Even Sales Calculator
Break-even units, sales revenue, and contribution margin from fixed costs, variable cost, and price — optional target profit. All in the browser.
Finance
Bottleneck Calculator
Bottleneck step, system throughput, and utilization % from each step’s capacity — Theory of Constraints, all in the browser.
Finance
Time Card Calculator
Total a week of start and end times with unpaid breaks in h:mm and decimal hours, split overtime after 40 hours, and estimate gross pay — all in the browser.
Finance
Date Calculator
Count the days between two dates, or add and subtract days, weeks, months, and years from any date — all in the browser.
Finance
Amortization Calculator
Monthly payment, total interest, and a full monthly or yearly amortization schedule for any fixed-rate loan, with optional extra payments — all in the browser.
Finance
Tip Calculator
Tip amount, total with tip, and per-person split from a bill and a 15%, 18%, 20%, 25%, or custom tip — optional round up, all in the browser.
Finance
Overtime Calculator
Regular pay, overtime pay, and total gross from hourly rate, regular/OT hours or total hours with a weekly threshold — default 1.5×, all in the browser.
Finance
APR Calculator
Monthly payment, estimated APR, total interest, and total cost for a fixed installment loan — optional upfront fees reduce net proceeds, all in the browser.
Finance
Student Loan Refinance Calculator
Current vs new monthly payment, total interest, estimated savings vs the current loan, and fee break-even for a student loan refinance — all in the browser.
Finance
Balance Transfer Calculator
Stay-put vs promo APR payoff, transfer fee, months to pay off, total interest, and estimated savings for a credit card balance transfer — all in the browser.
Finance
Purchasing Power Calculator
Equivalent buying power across years, % change in purchasing power, and a plain-language inflation summary — average rate or CPI indexes, all in the browser.
Finance
Straight Line Depreciation Calculator
Annual straight-line expense, depreciable basis, optional monthly (annual ÷ 12), and a year-by-year book-value schedule — all in the browser.
Finance
CD Rate Calculator
Ending balance, interest earned, APY or interest rate, and a year-by-year schedule from deposit, term, and compounding — all in the browser.
Finance
Markup Calculator
Selling price, profit dollars, markup %, and margin % from cost plus markup percent or selling price — all in the browser.
Finance
Percent Off Calculator
Discount amount, sale price, and percent off from original price plus percent off, sale price, or dollars off — all in the browser.
Finance
Discount Calculator
Sale price, discount dollars, and discount % from list price plus % or $ off — plus reverse (sale + % → original) and stacked/successive percent discounts. All in the browser.
Finance
Future Value Calculator
Future value, total contributions, and interest earned from an initial investment, optional deposits, annual rate, and compounding — all in the browser.
Finance
ROI Calculator
ROI %, net profit, and final value from an initial investment plus ending value or gain — all in the browser.
SEO
UTM Builder
UTM generator, maker, and link builder for campaign URLs — including bulk CSV — all in the browser.
SEO
Robots.txt Builder
Robots.txt builder and robot.txt generator for allow/disallow rules, user-agent groups, sitemap URLs, and AI crawler extras.
SEO
Schema Markup Validator
Schema markup validator and schema checker for JSON-LD — detect @context and @type, flag common errors, and pretty-print in the browser.
SEO
Domain Age Checker
Domain age checker for registration date, age in years/months/days, registrar, and expiration — public RDAP in the browser, or paste WHOIS. Nothing uploaded.
SEO
CPM Calculator
CPM calculator for cost per 1,000 impressions — solve CPM, cost, or impressions, plus CPC and CTR, all in the browser.
Developer
UUID Generator
Generate UUID v4 and UUID v7 (also used as an online GUID generator) with bulk copy.
Developer
JWT Decoder
Decode a JWT header and payload to readable JSON in the browser. No signature check, nothing uploaded.
Developer
Cron Expression Generator
Build a standard 5-field cron expression with presets, a human-readable summary, and upcoming run times — all in the browser.
Developer
SQL Formatter
Pretty-print SQL with indentation and uppercase keywords in the browser. Copy the formatted query — nothing uploaded.
Developer
JSON Formatter
Validate and pretty-print JSON in the browser with 2 or 4 spaces or tabs, minify, or sort keys. Copy or download — nothing uploaded.
Convert
HEIC to PNG Converter
Convert HEIC and HEIF photos to PNG in the browser. Batch convert, then download — files never leave the device.
Convert
HEIC to PDF Converter
Convert HEIC and HEIF photos to PDF in the browser. Batch convert, then download — files never leave the device.
Convert
Excel to PDF Converter
Convert Excel .xlsx and .xls spreadsheets to PDF in the browser. Batch convert, then download — files never leave the device.
Convert
CSV to Excel Converter
Convert CSV to Excel (.xlsx) in the browser. Paste or open a .csv file, then download a spreadsheet — nothing is uploaded.
Convert
JSON to CSV Converter
Convert JSON arrays and objects to CSV in the browser. Paste or open a .json file, then copy or download — nothing is uploaded.
Convert
PNG to JPG Converter
Convert PNG images to JPG in the browser. Batch convert, then download — files never leave the device.
Convert
Mm to Inches Calculator
Convert millimeters to inches (and inches back to mm) with the exact 1 inch = 25.4 mm formula — decimal and fractional inches, all in the browser.
Convert
Cubic Yard Calculator
Cubic yards and cubic feet from length × width × depth (or a cylinder) in feet or inches — mulch, gravel, concrete, soil, and sand, all in the browser.
Household
Soft Wash Mix Calculator
Educational gallons of mix, bleach, water, and surfactant from surface, square feet, and soil — then request a local quote.
Household
House Sq-Ft Estimator
Educational wall or roof square feet from L×W or footprint, 1–2 stories, and an optional roof pitch bump — then request a local quote.
Household
Vinyl Siding Cleanability Checker
Educational good / caution / skip soft-wash fit from siding type, soil, age, and shade — then request a local quote.
Household
Roof Algae Severity Quiz
Educational 1–4 streak score from coverage, roof age, trees, and north face, plus a typical soft-wash candidate note — not a diagnosis.
Household
Roofing Calculator
Roof surface area, roofing squares, and squares with waste from length × width or plan area, plus an optional pitch factor. Optional price per square stays blank.
Household
Concrete Calculator
Concrete volume in cubic yards and cubic feet for slabs, patios, footings, and round columns, plus waste and 40, 60, and 80 lb bag counts.
Math
Ratio Calculator
Simplify a ratio to lowest terms or solve a missing value in A : B = C : D, with 1 : n, decimal, and percentage forms.
Math
Proportion Calculator
Solve a proportion A / B = C / D for the missing value, or check if two ratios are proportional with cross products and the scale factor.
Math
GCF Calculator
Find the greatest common factor (GCD/HCF) of 2 to 20 whole numbers with prime factorization, Euclidean algorithm steps, common factors, and the LCM.
Math
Factoring Calculator
Find the prime factorization of a whole number, list every positive factor, see the factor count, and tell whether the number is prime or composite.