View on GitHub

Crypto Currency Calculator

Secure tools for your crypto currency calculations

Download this project as a .zip file Download this project as a tar.gz file

Overview

Here are some tools for your crypto currency calcuations. We hope you find them useful.

As far as security, you don't have to take our word for it. Download the code, examine it for any issues, then to make extra sure, run it in your browser in private/incognito mode with your Internet connection turned off.

There are definitely bugs and missing features. Please file issues and send pull requests.

Capital gains and losses

If you are a U.S. taxpayer using crypto-currencies, you should read answers to common questions about taxation of Bitcoins. That article suggests that it would be wise to pay capital gains taxes on your crypto-currency transactions.

This calculator uses the FIFO accounting method to calculate the capital gains of transactions. The input for this calculation is the date of transaction, the number of coins involved, and the cost basis of the transaction. The format is shown below in the sample. The output is the capital gains generated by those transactions for a given tax year.

Sample transaction history (date coin cost)
2013-01-01 0.10 1.33
2013-02-02 20.00 389.40
2013-03-03 300.00 10 239.00
2013-04-04 4.04 531.70
2013-05-05 50.50 5731.75
2013-06-06 6.06 725.26
2013-07-07 -70.00 -4953.90
2013-08-08 -8.00 -826.08
2013-09-09 -9.00 -1186.20
2013-10-10 10.00 1405.90
2013-11-11 1.11 390.39
2014-12-12 -0.12 -106.36
2014-01-01 1.01 813.38

(note that you probably want to aggregate transactions to the day, as that corresponds to the reporting requirements for Form 8949)

Paste your transaction history below


Capital gains and losses result