Skip to main content
Microsoft
separator
https://catalogartifact.azureedge.net/publicartifacts/95779390.024706dc-7232-4e85-97f1-7b1ac6ee9ceb-43b37aab-ff20-4e5b-82ac-7955323fd682/image3_capitalgains300.png

Capital Gains Worksheet Builder

by OpenSlot LLC

Match each sale in a trade list to its lots: proceeds, cost basis, and gain or loss, all checked.

Build a capital gains worksheet from a list of buys and sales in your workbook. Each sale is matched to the lots it came from under the method you pick, giving one row per lot sold with the date acquired, the date disposed, the quantity, proceeds, cost basis, and gain or loss.

What it does

  • Reads one sheet: the sheet named Trades when the workbook has one (the layout of the free trade log template on the Mathproven site), otherwise the active sheet. No other sheet is read.
  • Matches the columns from the header words: date, type (buy or sell), asset, quantity, total cost or proceeds, fee, and account or wallet. Every match is shown in the pane and can be changed, and so can the header row.
  • You pick the lot method: first in, first out, or highest cost first. You pick how fees are handled: added to cost and subtracted from proceeds, or left out. Neither is picked for you.
  • Writes a Worksheet sheet: one row per lot sold, then a total line.
  • Writes a Totals sheet: the method, the fee rule, proceeds, cost basis, and gain or loss, any sale larger than the holdings, the lots still held, and every row that was left out or could not be read, with its row number and the reason.
  • Writes a Certificate sheet listing every check as passed or failed.
  • Quantities are kept to 8 decimal places and money to the cent, in whole-number math, so nothing drifts.
  • A date cell gives its date; a time of day is read only where the date is typed as text. Trades with the same date and time run buys first, then in row order.

Checks on every run

  • A second lot engine, written a different way, agrees with the worksheet on which lots every sale took from, on the quantity and cost basis of each, and on what is left of every asset.
  • Quantity is conserved for every asset, and every lot is conserved on its own, in quantity and in cost.
  • Each row's cost basis is its lot's cost times the quantity taken divided by the lot's quantity, rounded to the cent, tested row by row.
  • Each sale's own proceeds are split over its rows by quantity, to the cent.
  • Gain or loss is proceeds minus cost basis on every row.
  • No sale is larger than the holdings before it. A sale that is larger is listed by row and is never given a zero cost basis.
  • Every row with data is accounted for: used, listed as left out, or listed as unreadable. A row that cannot be read is never rounded or guessed in, and the result is not verified.
  • A warning when the trades come from more than one account or wallet, because lots are pooled per asset across all of them.

Only rows typed as a buy or a sale are used. Transfers, rewards, and conversions or swaps of one coin into another are listed and counted, not matched.

If a check fails, the add-in says "Not verified", lists what failed, and marks the sheets it writes UNVERIFIED in the first row and in the tab name. Your trade list is never changed.

The add-in matches sales to lots under the method you pick and checks the arithmetic. The worksheet is in its own layout: it is not a tax form and is not in any agency's form layout. It does not say which method applies to you or what to report.

Your data stays in your workbook

The add-in runs inside Excel. It does not upload your workbook, and it has no analytics. Results are written into the same workbook, which is stored wherever you keep it: on your computer, or with Microsoft when you use Excel on the web, AutoSave, or OneDrive.

Free and paid use

Free: 3 runs per day; a run that does not verify is not counted. A Mathproven subscription removes the limit; subscribers paste an add-in key from their account page. Additional purchase may be required for unlimited use.

This add-in calculates and verifies. It does not give legal, tax, or accounting advice.

App capabilities

When this app is used, it
  • Can read and make changes to your document
  • Can send data over the Internet

At a glance

https://catalogartifact.azureedge.net/publicartifacts/95779390.024706dc-7232-4e85-97f1-7b1ac6ee9ceb-43b37aab-ff20-4e5b-82ac-7955323fd682/image0_capitalgains1.png
https://catalogartifact.azureedge.net/publicartifacts/95779390.024706dc-7232-4e85-97f1-7b1ac6ee9ceb-43b37aab-ff20-4e5b-82ac-7955323fd682/image1_capitalgains2.png
https://catalogartifact.azureedge.net/publicartifacts/95779390.024706dc-7232-4e85-97f1-7b1ac6ee9ceb-43b37aab-ff20-4e5b-82ac-7955323fd682/image2_capitalgains3.png
English (United States)
Your Privacy Choices Opt-Out Icon Your Privacy Choices
Consumer Health Privacy Sitemap Contact Us Privacy & Cookies Terms of Use About our ads Manage cookies