DEV Community

Cover image for Gumroad vs KDP vs Leanpub for Python Technical Ebooks: Real Numbers
German Yamil
German Yamil

Posted on โ€ข Edited on

Gumroad vs KDP vs Leanpub for Python Technical Ebooks: Real Numbers

Gumroad vs KDP vs Leanpub for Python Technical Ebooks: Real Numbers

If you're producing a technical Python ebook, you have three credible distribution platforms. They work completely differently, and using the wrong one for your situation costs real money.

Here's the comparison with actual fee calculations, not marketing copy.


๐ŸŽ Free: AI Publishing Checklist โ€” 7 steps in Python ยท Full pipeline: germy5.gumroad.com/l/xhxkzz (pay what you want, min $9.99)


Platform overview

Gumroad Amazon KDP Leanpub
Fee structure 10% per sale 30โ€“65% royalty cut 20% per sale
File types Any (EPUB, PDF, ZIP) EPUB โ†’ MOBI only EPUB, PDF
Discovery None (you drive traffic) Amazon search Minimal
Payout Weekly Monthly (60-day delay) Monthly
API โœ… Full REST โŒ None โŒ None
Email capture โœ… Built-in โŒ No โœ… Built-in
Pay-what-you-want โœ… โŒ โœ…
Code bundles โœ… (ZIP files) โŒ โœ…
Min viable price $0 $0.99 $0

Fee calculations at real price points

At $9.99 per sale

Platform Gross Platform cut Your net
Gumroad $9.99 $1.00 (10%) $8.99
KDP (70% tier)* $9.99 $3.00 (30%) $6.99
KDP (35% tier) $9.99 $6.49 (65%) $3.50
Leanpub $9.99 $2.00 (20%) $7.99

*KDP 70% royalty requires price $2.99โ€“$9.99 AND enrolled in KDP Select.

At $19.99 per sale

Platform Gross Platform cut Your net
Gumroad $19.99 $2.00 (10%) $17.99
KDP (35% tier) $19.99 $13.00 (65%) $6.99
Leanpub $19.99 $4.00 (20%) $15.99

Note: KDP's 70% royalty tier only applies to prices $2.99โ€“$9.99. Above $9.99, KDP charges 65% (35% to you). This is the most important number most authors miss.

Gumroad: best for bundles and direct sales

import requests

def create_gumroad_product(token: str, name: str, price_cents: int, description: str) -> dict:
    """Create a product on Gumroad via REST API."""
    resp = requests.post(
        "https://api.gumroad.com/v2/products",
        headers={"Authorization": f"Bearer {token}"},
        data={
            "name": name,
            "price": price_cents,
            "description": description,
            "customizable_price": "true",  # pay-what-you-want
        }
    )
    resp.raise_for_status()
    return resp.json()["product"]

product = create_gumroad_product(
    token="your_token",
    name="The Python Ebook Pipeline",
    price_cents=999,  # $9.99 minimum
    description="..."
)
print(f"Created: {product['short_url']}")
Enter fullscreen mode Exit fullscreen mode

Use Gumroad when:

  • You want to sell a bundle (EPUB + PDF + source code ZIP)
  • You need email capture for your list
  • You're driving all your own traffic
  • You want pay-what-you-want pricing
  • You need immediate payout (weekly)

Gumroad limitation: No organic discovery. Zero people will find you through Gumroad search. Every sale comes from traffic you generate yourself.

Amazon KDP: best for organic discovery

KDP has no API โ€” everything is manual through kdp.amazon.com. But it has one thing Gumroad doesn't: Amazon search.

People search Amazon for "python automation book" and find your ebook. This is the only platform on this list where you can generate sales without driving traffic yourself.

The math that matters:

At $9.99 with KDP 70% royalty: $6.99 per sale
At $4.99 with KDP 70% royalty: $3.49 per sale

The 70% royalty requires enrollment in KDP Select, which means Kindle exclusivity for 90 days. You cannot sell the same EPUB through other channels during that period.

Alternative: KDP without Select (35% royalty, no exclusivity):

At $9.99 with 35%: $3.49 per sale โ€” worse than Leanpub.

Use KDP when:

  • You want organic Amazon discovery
  • You're willing to price at $9.99 or below
  • You can accept the 60-day payout delay
  • You don't need to sell code bundles (Kindle only supports EPUB content)

Leanpub: best for technical audiences

Leanpub has a specific audience: developers willing to pay for technical books. The platform has built-in discovery within a community that actively buys programming books.

20% fee is between Gumroad (10%) and KDP at the same price point. At $14.99:

  • Leanpub: $11.99 to you
  • Gumroad: $13.49 to you
  • KDP 35%: $5.25 to you (terrible)

Leanpub also supports pay-what-you-want with a minimum price, which often increases average sale price โ€” readers who find value pay more.

Use Leanpub when:

  • Your audience is specifically developers buying technical books
  • You want built-in community discovery
  • You want pay-what-you-want
  • You're OK with 20% fee for the distribution benefit

My actual setup: Gumroad + KDP, cross-linked

I use both simultaneously:

Gumroad ($9.99+ PWYW): The full bundle โ€” EPUB in EN + ES, 10 Python scripts, all automation files. Drives traffic from Dev.to articles. Email capture included.

KDP ($7.99, 70% tier): EPUB only, English. Amazon organic search. Listed at a lower price to be competitive in search results.

Each listing links to the other:

  • Gumroad description: "Also available on Amazon Kindle"
  • KDP description: "Full bundle with source code at germy5.gumroad.com"

This captures both direct traffic (Gumroad) and organic search (KDP) without violating KDP Select terms (I'm not enrolled in Select โ€” no exclusivity).

Break-even comparison at $9.99

Platform Net per sale Sales to cover $20/month infra
Gumroad $8.99 3 sales
KDP 70% $6.99 3 sales
KDP 35% $3.49 6 sales
Leanpub $7.99 3 sales

At $9.99, all platforms except KDP 35% hit break-even within 3 sales. KDP 35% requires double.

The verdict: Use Gumroad + KDP (not enrolled in Select). Skip KDP Select unless you have no traffic and need the full 70% royalty at the $9.99 price ceiling.


The pipeline that automates the Gumroad side of publishing: germy5.gumroad.com/l/xhxkzz โ€” pay what you want, min $9.99.

If this saved you time, the โค๏ธ button helps other developers find it.


Further Reading

Top comments (0)