---
title: "Trade-in and buyback pricing from eBay sold prices"
url: https://www.soldcomps.io/use-cases/trade-in-pricing
updated: 2026-11-23
answer: "To price a trade-in, start from what the device actually resells for: SoldComps.io returns the last 90 days of eBay sales for the exact model with the median and p25, and an offer of p25 minus resale fees, costs and margin keeps your target margin on about three out of four resales; one API call per model keeps offers current."
publisher: SoldComps.io (https://www.soldcomps.io)
---

# Trade-in and buyback pricing from eBay sold prices

> To price a trade-in, start from what the device actually resells for: SoldComps.io returns the last 90 days of eBay sales for the exact model with the median and p25, and an offer of p25 minus resale fees, costs and margin keeps your target margin on about three out of four resales; one API call per model keeps offers current.

**Python: a trade-in offer from eBay sold prices**

```python
import os, requests

FEES = 0.15    # eBay + payment fees on resale (check yours with the fee calculator)
MARGIN = 0.20  # your target margin, as a share of the resale price
COSTS = 20     # shipping, testing, wipe/refurb per unit

def trade_in_offer(q, condition="used"):
    r = requests.get("https://www.soldcomps.io/v1/sold",
                     params={"q": q, "condition": condition, "days": 30, "limit": 1},
                     headers={"Authorization": f"Bearer {os.environ['SOLDCOMPS_KEY']}"}, timeout=30)
    r.raise_for_status()
    d = r.json()
    if d["count"] < 10 or d["stats"]["p25"] is None:
        return None  # too few clean sales: quote by hand
    p25 = d["stats"]["p25"]  # 3 of 4 clean sales sold at or above this
    return max(0, round(p25 * (1 - FEES - MARGIN) - COSTS))

print(trade_in_offer("iphone 15 pro 128gb unlocked"))
```

**Next step:** [Get a free API key](https://www.soldcomps.io/signup?ref=use-case-trade-in-pricing)

## The job

A buyback site, trade-in program or store buys used phones, consoles and GPUs and resells them. The offer has to beat competitors but still leave a margin after resale fees, and prices move weekly as new models launch.

eBay sold prices are the market the device will be resold into, so they're the honest base for an offer. Using p25 rather than the median builds in room: three quarters of clean sales cleared that price.

## How to do it

1. **Search the exact model.** Model, storage and carrier status in the query (iphone 15 pro 128gb unlocked); exclude damage with -cracked -broken -locked.
2. **Use the last 30 days.** days=30 tracks the current market; new model launches move used prices fast.
3. **Start from p25.** p25 is the price three quarters of clean sales beat, so resale at or above it is likely.
4. **Subtract fees, costs and margin.** offer = p25 × (1 − fees − margin) − per-unit costs. Grade conditions below the top grade with a fixed discount.
5. **Refresh every day.** One call per model; at limit=1 a call costs 21 credits, so a 100-model catalog refreshed daily is about 63,000 credits a month.

## Resale prices behind trade-in offers (eBay US, used, snapshot Nov 13, 2026)

| Item | Condition | Median | Middle half (p25 to p75) | Clean sales | Left out | Auction share | Sales from |
|---|---|---|---|---|---|---|---|
| [iPhone 15 Pro 128GB (unlocked)](https://www.soldcomps.io/comps/iphone-15-pro-128gb) | used | $425.00 | $410.14 to $455.00 | 41 | 3 | 12% | Oct 20, 2026 to Nov 12, 2026 |
| [iPhone 14 128GB (unlocked)](https://www.soldcomps.io/comps/iphone-14-128gb) | used | $242.00 | $221.93 to $272.49 | 43 | 0 | 5% | Sep 5, 2026 to Nov 12, 2026 |
| [Samsung Galaxy S24 Ultra 256GB (unlocked)](https://www.soldcomps.io/comps/galaxy-s24-ultra-256gb) | used | $451.44 | $399.00 to $490.99 | 88 | 4 | 7% | Oct 28, 2026 to Nov 14, 2026 |
| [PlayStation 5 (disc)](https://www.soldcomps.io/comps/ps5-disc) | used | $475.00 | $449.99 to $519.99 | 40 | 4 | 5% | Nov 11, 2026 to Nov 12, 2026 |
| [Nintendo Switch OLED](https://www.soldcomps.io/comps/nintendo-switch-oled) | used | $165.00 | $159.50 to $182.50 | 35 | 9 | 20% | Nov 11, 2026 to Nov 12, 2026 |
| [NVIDIA RTX 4070](https://www.soldcomps.io/comps/rtx-4070) | used | $619.00 | $550.00 to $650.00 | 41 | 3 | 10% | Nov 1, 2026 to Nov 12, 2026 |
| [MacBook Air M1 (2020)](https://www.soldcomps.io/comps/macbook-air-m1) | used | $349.99 | $329.96 to $373.72 | 38 | 4 | 11% | Oct 13, 2026 to Nov 12, 2026 |
| [Apple Watch Ultra (1st gen) 49mm](https://www.soldcomps.io/comps/apple-watch-ultra-49mm) | used | $215.00 | $199.99 to $233.99 | 41 | 58 | 15% | Nov 3, 2026 to Nov 14, 2026 |

- With the code's settings (fees 15%, margin 20%, $20 costs), the iPhone 15 Pro 128GB (unlocked) gets an offer of about $246.59 against a $425.00 median, the PlayStation 5 (disc) about $272.49 and the NVIDIA RTX 4070 about $337.50.
- Phones and consoles price tightly: the PlayStation 5 (disc)'s middle half is $449.99 to $519.99, so offers built on p25 are low-risk. Check the clean-sale count before quoting a model with under 10.
- Prices exclude shipping, which is returned per sale; include your inbound and outbound shipping in costs.

Source: SoldComps.io eBay Sold Comps Index (https://www.soldcomps.io/comps), eBay US sold listings, snapshot 2026-11-13. Prices exclude shipping.

## When SoldComps.io is not the right tool

- Locked, blacklisted or financed phones: check IMEI status separately; sold prices assume a clean device.
- Grading by condition: map your grades to eBay conditions (used, refurbished, for_parts) or apply your own discounts.
- Markets outside eBay US, UK and Germany.

## Frequently asked questions

### Why price trade-ins from p25 and not the median?

Because you have to resell the device. p25 is the price three out of four clean sales cleared, so an offer built on it leaves margin even when the resale comes in low.

### How often should trade-in prices update?

Daily for phones and GPUs, where launches move used prices within days. Use days=30 so the base tracks the current market.

### Can I price a whole catalog?

Yes, one call per model. At limit=1 each call costs 21 credits and still returns stats from every matching sale.

### Does it cover refurbished and for-parts devices?

Yes: condition=refurbished or condition=for_parts searches those markets separately, so a cracked-screen offer comes from for-parts sales.

## Related

- [eBay fee and profit calculator](https://www.soldcomps.io/tools/ebay-fee-calculator)
- [Phones & tech sold comps](https://www.soldcomps.io/comps/category/phones-tech)
- [Used GPU prices](https://www.soldcomps.io/blog/used-gpu-prices)
- [Python integration](https://www.soldcomps.io/use-cases/ebay-sold-listings-api-python)
- [API docs](https://www.soldcomps.io/docs)
- [Pricing](https://www.soldcomps.io/pricing)

SoldComps.io sells an eBay sold comps API, so we have a commercial interest here. Corrections: hello@soldcomps.io
