DCA Calculator for Crypto in Google Sheets (2026)
TL;DR
Build a crypto DCA calculator in Google Sheets using CoinTable formulas. Track your average cost basis, total invested, current value, and profit/loss — all updating automatically with live prices. This guide walks you through the complete spreadsheet setup with every formula you need.
What Is Dollar-Cost Averaging?
Dollar-Cost Averaging (DCA) means investing a fixed amount at regular intervals — say $200 every month into Bitcoin — regardless of the current price. When prices drop, you buy more coins. When prices rise, you buy fewer. Over time, this smooths out volatility and reduces the risk of buying everything at a peak.
Tracking DCA in a spreadsheet gives you something no app dashboard can: full control. You see your exact average cost, cumulative investment, and real-time P&L side by side. CoinTable, a Google Sheets add-on for cryptocurrency prices, makes this possible by injecting live market data directly into your formulas.
For the full setup on getting crypto prices into Sheets, see our guide on how to get crypto prices in Google Sheets.
Why Track DCA in Google Sheets?
- See your true average cost — Not an estimate from an exchange, but a formula you control
- Compare DCA vs. lump sum — Run both scenarios with real numbers
- Full audit trail — Every purchase logged with date, amount, and price
- No vendor lock-in — Your data lives in your Google Drive, not in a third-party app
- Live valuation — CoinTable formulas update your current value automatically
Build the DCA Calculator Step by Step
Column Layout
Set up your sheet with these columns:
| Column | Header | Purpose |
|---|---|---|
| A | Date | Purchase date |
| B | Amount Invested ($) | Fixed amount per interval |
| C | Coin Price | Price at time of purchase |
| D | Coins Bought | Amount / Price |
| E | Running Total Coins | Cumulative coins held |
| F | Total Invested | Cumulative dollars spent |
| G | Current Value | Holdings × current price |
| H | P&L ($) | Current value minus invested |
The Formulas
Enter these formulas in row 2, then drag them down for each purchase:
D2 (Coins Bought): =B2/C2
E2 (Running Total Coins): =SUM(D$2:D2)
F2 (Total Invested): =SUM(B$2:B2)
G2 (Current Value): =E2*CT_PRICE("BTC")
H2 (P&L): =G2-F2
The key formula is =E2*CT_PRICE("BTC") — it multiplies your running coin total by the live Bitcoin price from CoinTable. Every time the sheet recalculates, your P&L updates.
Average Cost Basis
Add this formula in a summary cell above or beside your table:
Average Cost = Total Invested / Running Total Coins
= =F100/E100 (where row 100 is your last entry)
Or more precisely, use a dynamic formula:
=SUMPRODUCT(B2:B100*(B2:B100<>"")) / SUMPRODUCT(D2:D100*(D2:D100<>""))
This handles empty rows without breaking.
Complete Example: BTC DCA Over 6 Months
Here's what a real DCA log looks like. Assume you invest $200 on the 1st of each month:
| Date | Invested | BTC Price | BTC Bought | Total BTC | Total Invested | Current Value | P&L |
|---|---|---|---|---|---|---|---|
| 2025-10-01 | $200 | $63,500 | 0.003150 | 0.003150 | $200 | =E2*CT_PRICE("BTC") | =G2-F2 |
| 2025-11-01 | $200 | $71,200 | 0.002809 | 0.005959 | $400 | =E3*CT_PRICE("BTC") | =G3-F3 |
| 2025-12-01 | $200 | $68,400 | 0.002924 | 0.008883 | $600 | =E4*CT_PRICE("BTC") | =G4-F4 |
| 2026-01-01 | $200 | $70,175 | 0.002851 | 0.011734 | $800 | =E5*CT_PRICE("BTC") | =G5-F5 |
| 2026-02-01 | $200 | $75,300 | 0.002656 | 0.014390 | $1,000 | =E6*CT_PRICE("BTC") | =G6-F6 |
| 2026-03-01 | $200 | $82,100 | 0.002437 | 0.016827 | $1,200 | =E7*CT_PRICE("BTC") | =G7-F7 |
Summary Dashboard
Add these summary formulas at the top of your sheet:
Total Invested: =SUM(B2:B7) → $1,200.00
Total BTC: =SUM(D2:D7) → 0.016827
Average Cost: =SUM(B2:B7)/SUM(D2:D7) → $71,318
Current BTC Price: =CT_PRICE("BTC") → (live)
Current Value: =SUM(D2:D7)*CT_PRICE("BTC") → (live)
Total P&L ($): =Current Value - Total Invested → (live)
Total Return (%): =(Current Value - Total Invested)
/ Total Invested * 100 → (live)
DCA for Any Coin, Not Just Bitcoin
The same spreadsheet works for any cryptocurrency. Replace "BTC" with any ticker CoinTable supports:
=CT_PRICE("ETH") → Ethereum DCA
=CT_PRICE("SOL") → Solana DCA
=CT_PRICE("DOGE") → Dogecoin DCA
You can even track multiple DCA strategies in separate sheets within the same workbook — one tab for BTC, another for ETH, a third for SOL. The formulas are identical; only the ticker changes.
For more formula options, check out the crypto formulas cheat sheet.
DCA vs. Lump Sum: Compare Both Strategies
One of the biggest advantages of building your own spreadsheet is running "what if" scenarios. Here's how to compare DCA against a lump-sum investment.
Lump Sum Setup
In a separate section of your sheet:
Lump Sum Amount: $1,200 (same as total DCA invested)
Lump Sum Date: 2025-10-01 (same as DCA start)
BTC Price on That Date: $63,500
BTC Bought: =1200/63500 → 0.018898
Current Value: =0.018898*CT_PRICE("BTC") → (live)
Lump Sum P&L: =Current Value - 1200 → (live)
Side-by-Side Comparison
| Metric | DCA | Lump Sum |
|---|---|---|
| Total Invested | $1,200 | $1,200 |
| Coins Acquired | 0.016827 BTC | 0.018898 BTC |
| Average Cost | $71,318 | $63,500 |
| Current Value | =0.016827*CT_PRICE("BTC") | =0.018898*CT_PRICE("BTC") |
| P&L | =DCA Value - 1200 | =Lump Sum Value - 1200 |
In a steadily rising market, lump sum tends to outperform DCA because you bought more coins at the lower early price. In a volatile or declining market, DCA protects you by spreading your purchases across multiple price points.
The spreadsheet lets you see exactly which strategy would have won for your specific time period and coin.
Adding a Chart
Visualize your DCA progress with a Google Sheets chart:
- Select your Date column and Current Value column
- Go to Insert → Chart
- Choose a Line chart
- Add a second series for Total Invested to see both lines on the same chart
The gap between the two lines is your P&L. When Current Value is above Total Invested, you're in profit. When it dips below, you're in a drawdown.
Advanced: Multi-Coin DCA Portfolio
If you DCA into several coins, combine them into a single dashboard:
| Coin | Total Invested | Coins Held | Avg Cost | Current Price | Current Value | P&L |
|---|---|---|---|---|---|---|
| BTC | $1,200 | 0.016827 | $71,318 | =CT_PRICE("BTC") | =C2*E2 | =F2-B2 |
| ETH | $600 | 0.2340 | $2,564 | =CT_PRICE("ETH") | =C3*E3 | =F3-B3 |
| SOL | $300 | 2.1127 | $142.01 | =CT_PRICE("SOL") | =C4*E4 | =F4-B4 |
| Total | $2,100 | — | — | — | =SUM(F2:F4) | =SUM(G2:G4) |
For a more complete portfolio setup with allocation percentages and 24h changes, see our crypto portfolio tracker in Google Sheets guide.
DCA Frequency: Weekly vs. Monthly
How often should you DCA? The answer depends on your budget and patience, but the spreadsheet makes it easy to compare.
Weekly DCA Example
$50 per week into ETH over 12 weeks:
| Week | Invested | ETH Price | ETH Bought | Total ETH | Total Invested |
|---|---|---|---|---|---|
| 1 | $50 | $2,800 | 0.01786 | 0.01786 | $50 |
| 2 | $50 | $2,750 | 0.01818 | 0.03604 | $100 |
| 3 | $50 | $2,900 | 0.01724 | 0.05328 | $150 |
| ... | ... | ... | ... | ... | ... |
| 12 | $50 | $3,100 | 0.01613 | 0.20845 | $600 |
Weekly DCA gives you more data points and a smoother average cost. Monthly DCA is simpler to manage and uses fewer CoinTable requests. For most people, monthly is the practical choice.
Tips for Your DCA Spreadsheet
-
Lock historical prices — Once you record a purchase, paste the price as a value (Ctrl+Shift+V) so it doesn't change. Only the "Current Value" column should use live CoinTable formulas.
-
Automate logging — Use Google Apps Script with a time trigger to append a new row on your DCA schedule automatically.
-
Use number formatting — Format dollar columns as currency, BTC columns with 6-8 decimal places, and percentage columns as percentages.
-
Color-code P&L — Apply conditional formatting: green for positive P&L, red for negative.
-
Set realistic intervals — Weekly, bi-weekly, or monthly are the most common DCA frequencies. Daily DCA generates too many rows and eats through CoinTable requests faster.
Getting Started
- Install CoinTable — Get it from Google Workspace Marketplace
- Create the columns — Use the layout from this guide
- Enter your first purchase — Date, amount, and price
- Add formulas — Running total, current value, and P&L
- Repeat on schedule — Add a new row each time you buy
If you want a ready-to-use layout, our best crypto Google Sheets templates article includes a DCA template you can copy and start using immediately.
Frequently Asked Questions
What is DCA in crypto?
DCA (Dollar-Cost Averaging) is an investment strategy where you invest a fixed amount at regular intervals (weekly, monthly) regardless of the current price. It reduces the impact of volatility by averaging your entry price over time.
Can I build a DCA calculator in Google Sheets for free?
Yes. Use CoinTable (free tier: 300 requests/month) to get live prices with =CT_PRICE("BTC"), and standard spreadsheet formulas for calculations. No paid tools or subscriptions required.
How do I calculate my average DCA cost?
Divide your total amount invested by your total coins accumulated: =SUM(InvestedColumn)/SUM(CoinsBoughtColumn). Compare this to =CT_PRICE("BTC") to see your current gain or loss.
Is DCA better than lump sum investing?
Historically, lump sum investing outperforms DCA about 65% of the time in traditional markets. However, DCA reduces risk in volatile assets like crypto and is psychologically easier. It depends on your risk tolerance and investment horizon.
Can I DCA multiple cryptocurrencies in one spreadsheet?
Yes. Create separate tabs for each coin, or add a Coin column and use =CT_PRICE(CoinCell) with cell references. CoinTable supports 10,000+ coins so you can DCA into any cryptocurrency.
Stop copying prices manually
Free covers 300 requests a month. Plus is $5/month for unlimited requests and 10,000+ coins.
Related Articles
View allCrypto Portfolio Tracker in Google Sheets (Free Template, 2026)
Build a free crypto portfolio tracker in Google Sheets with CoinTable. Live prices, P&L, 24h changes. Step-by-step guide with formulas.
10 min readCrypto Tax Tracker Google Sheets (2026)
Build a crypto tax tracker in Google Sheets. Track buys, sells, cost basis, and capital gains with CoinTable formulas. FIFO & LIFO examples.
10 min readGOOGLEFINANCE Crypto — Limitations & Better Alternatives (2026)
GOOGLEFINANCE only supports ~10 crypto coins with 20-min delay. Learn its limitations and switch to CoinTable for 10,000+ coins in Google Sheets.
8 min read