US bank routing number check
Check the check digit and the first two digits of a US ABA routing number.
- Version 1
- Checked against 1 published value
- Free, no sign-up
Examples
Example: A New York routing number
| Valid Whether the routing number passes every check. |
yes |
|---|---|
| Normalized The number as it was checked: separators removed, letters in upper case. |
021000021 |
| Message The result in a sentence, naming the rule that failed. |
A well-formed routing number (Federal Reserve district 2). |
| Prefix meaning What the first two digits stand for. |
Federal Reserve district 2 |
| Check digit The ninth digit. |
1 |
| Expected check digit The check digit the first eight digits give. |
1 |
Calculator check/us-routing-number@1.
How it is calculated
3·(d₁ + d₄ + d₇) + 7·(d₂ + d₅ + d₈) + (d₃ + d₆ + d₉) must be a multiple of 10Checks a nine-digit ABA routing transit number: the first two digits must be in a range the American Bankers Association uses, and the ninth digit must be the check digit the first eight give with the weights 3, 7, 1.
- The number is checked by arithmetic alone. Nothing is looked up, so a valid result means the number is well formed, not that the account, company or security exists.
References
- American Bankers Association: ABA routing number
- ABA routing transit number: check digit and number ranges
Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.
Use it from your code
curl https://api.curatedapi.com/v1/calc/check/us-routing-number \
-H "Authorization: Bearer $CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"number": "021000021"
}'
The same call in Python
import os
import requests
payload = {
"number": "021000021",
}
response = requests.post(
"https://api.curatedapi.com/v1/calc/check/us-routing-number",
headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
json=payload,
timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
"number": "021000021",
};
const response = await fetch("https://api.curatedapi.com/v1/calc/check/us-routing-number", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CURATEDAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
console.log((await response.json()).result);
MCP tool calc_check_us_routing_number at https://mcp.curatedapi.com.
Inputs, outputs and errors in the API reference.
Put it on your website
<div data-curatedapi-widget="check/us-routing-number" data-key="capi_public_…"></div>
<script src="https://widgets.curatedapi.com/v1/widget.js" async></script>
Use a public key registered for your site. Calculations are billed like API calls. How widgets work.
Related calculators
- Australian Business Number (ABN) check
- BIC (SWIFT code) check
- CUSIP check
- GSTIN check (India)
- IBAN check
- ISIN check
- LEI check
- PAN check (India)
- VAT number check
Add this calculator to your website
Paste two lines into your page and your visitors get this calculator. Each use counts as one call on your plan, the same as the API.
Free for up to 1,000 uses a month. 50,000 uses a month cost $9.00 on the Starter plan.