Fix Claude API 429 Rate Limit Exceeded
Updated 11/1/2026
Receiving an HTTP 429 error from the Claude API means your application has exceeded its rate limits. Anthropic enforces these limits to protect server resources and ensure fair usage across all developers. These limits are calculated based on Requests Per Minute (RPM), Tokens Per Minute (TPM), and Tokens Per Day (TPD).
When you hit a 429 limit, Claude stops processing your requests until the cooldown window resets. This guide walks you through diagnosing which specific limit you triggered and configuring your application to handle or bypass these restrictions.
Step 1: Diagnose the Specific Rate Limit Triggered Before changing your code, identify which limit is being exceeded. The Claude API returns specific headers and JSON response bodies when a rate limit is hit.
Look at the response headers of your failed API call. Anthropic includes these debugging headers in every response: * anthropic-ratelimit-requests-limit: Your total allowed requests per minute (RPM). * anthropic-ratelimit-requests-remaining: The number of requests you can still make in the current window. * anthropic-ratelimit-requests-reset: The time (ISO 8601 format) when your RPM limit resets. * anthropic-ratelimit-tokens-limit: Your total allowed tokens per minute (TPM). * anthropic-ratelimit-tokens-remaining: The number of tokens you can still use in the current window. * anthropic-ratelimit-tokens-reset: The time when your TPM limit resets. * retry-after: The number of seconds you must wait before making another request.
Review your application logs to capture the raw JSON error payload. A rate limit error will look like this: `json { "type": "error", "error": { "type": "rate_limit_error", "message": "Number of requests has exceeded your rate limit." } } ` Knowing whether you are hitting request limits (RPM) or token limits (TPM) dictates your next step.
Agent Builder turns a task you repeat into a reusable assistant with setup text for each app.
Tickd is independent and not affiliated with any AI company.
Step 2: Implement Exponential Backoff with Jitter If you run concurrent requests, you must handle 429 errors programmatically. A basic retry loop will worsen the problem by flooding the API the moment the rate limit window resets. Implement exponential backoff with randomized jitter to spread out the retry attempts.
If you use the official Python SDK, retry logic is built-in but can be customized. For custom integrations, use this logic:
- Catch the anthropic.RateLimitError or HTTP status code 429.
- Check the retry-after header value. If present, wait that exact number of seconds.
- If the header is missing, calculate a delay: delay = min(backoff_max, backoff_base * (factor ** attempt)).
- Add a small random value (jitter) to prevent synchronized retries across multiple processes.
- Retry the request.
Step 3: Implement Client-Side Rate Limiting and Queuing Do not rely solely on retries. Limit your throughput on the client side to stay below your assigned thresholds: * **Queue Incoming Requests:** Use a queue (such as Celery, BullMQ, or RabbitMQ) to process API calls asynchronously rather than executing them in real-time. * **Throttle Concurrency:** Limit the number of parallel workers or asynchronous requests calling the Claude API simultaneously. * **Token Counting:** Estimate your prompt token usage before sending the request. If your queue detects that an incoming batch of requests will exceed your available TPM, hold the requests back until the next minute starts.
Step 4: Reduce Your Token Footprint If you are hitting TPM (Tokens Per Minute) limits, you can optimize your API payloads to consume fewer tokens: * **Enable Prompt Caching:** If you send large system instructions, context documents, or identical reference material in every request, use Claude's Prompt Caching feature. Cached tokens cost less and do not count fully against your rate limits in the same way. * **Trim System Prompts:** Remove unnecessary examples, boilerplate text, or redundant instructions from your system prompt. * **Limit `max_tokens`:** Explicitly set the `max_tokens` parameter to the lowest acceptable value for your use case to prevent Claude from generating overly long, token-heavy responses.
Step 5: Upgrade Your Usage Tier Anthropic categorizes accounts into usage tiers (Evaluation, Tier 1, Tier 2, Tier 3, Tier 4). Your rate limits scale up automatically as you transition to higher tiers.
- Navigate to the Anthropic Console.
- Go to the Billing section.
- Deposit funds or set up auto-recharge. Upgrading to a higher tier requires meeting specific cumulative payment thresholds. For example, moving from Tier 1 to Tier 2 requires a lifetime spend/deposit of at least $40.
- Once the transaction clears, your rate limits (RPM and TPM) will automatically increase. Check the Limits tab in your console to verify the new capacities.
When to Escalate If you have upgraded your account to Tier 4 or Tier 5 and your application still exceeds the available TPM/RPM, or if you have a sudden enterprise-scale volume spike, you must request a custom limit. Navigate to the **Limits** page in your Anthropic Console and click **Request Limit Increase**. Be prepared to provide your estimated monthly spend, use case, and specific target TPM/RPM figures.
Quick fixes
- Claude is down or not loading
- Claude Pro billing or payment problem
- Can't sign in to Claude