Most people think flange selection is a catalog problem. It is actually a service-conditions problem. Nowhere is that more obvious than the line between API 6A and ASME B16.5. Both specifications cover flanges. Both list pressure classes. Both define facing types and bolt patterns. And both will sit on a procurement engineer's desk looking interchangeable until somebody runs the wrong one on the wrong side of the wellhead.
The two specs were written for fundamentally different worlds. ASME B16.5 covers general industrial process piping. API 6A covers upstream oilfield wellhead and Christmas tree equipment. The materials, pressure regimes, sealing technology, and inspection regimes all diverge from there.
A Quick History
ASME B16.5 traces back to the original American Standard for steel pipe flanges, first issued in the 1920s and revised continuously since. It covers pipe flanges and flanged fittings from 1/2 inch through 24 inches in pressure classes 150, 300, 400, 600, 900, 1500, and 2500. Above 24 inches the dimensional baton passes to ASME B16.47 (Series A or MSS SP-44 lineage, and Series B or API 605 lineage). B16.5 is the spec that governs refineries, chemical plants, power plants, pipelines, and most of the process world downstream of the wellhead.
API 6A grew out of the oilfield's need for a spec that addressed wellhead conditions specifically. Hydrocarbon production at the wellhead does not look like a refinery cracker outlet. Pressures are higher, temperatures more variable, sour gas more common, and the consequences of failure more public. API 6A first appeared in the 1930s, and the current edition, API Specification 6A 21st Edition (also harmonized as ISO 10423), is what governs new wellhead, Christmas tree, and surface safety valve equipment.
Pressure Class: Where The Numbers Diverge
ASME B16.5 pressure classes are named by their cold working pressure on a Group 1.1 material at room temperature, roughly. Class 150 holds 285 psi cold. Class 300 holds 740 psi. Class 600 holds 1480. Class 1500 holds 3705. Class 2500 holds 6170. Those numbers derate as temperature climbs, and the derating tables are in Annex A of the standard.
API 6A pressure classes are named by their cold working pressure directly. 2K means 2,000 psi. 3K means 3,000 psi. 5K is 5,000 psi. 10K is 10,000. 15K is 15,000. And 20K is 20,000 psi. There is no derating game; the class name is the rating at the rated temperature class (which API 6A handles through temperature classifications K, L, P, R, S, T, U, V, and Y).
The overlap zone is narrow. ASME Class 2500 at 6,170 psi sits between API 5K and 10K. There is no ASME class that reaches API 10K, 15K, or 20K. If the service pressure is above about 6,000 psi at room temperature, the flange is going to be API 6A whether anybody intended it that way or not.
Facing Requirements
ASME B16.5 allows multiple facing types: raised face (RF), flat face (FF), ring-type joint (RTJ), tongue and groove, and male and female. Raised face is the default for most process service. RTJ shows up at Class 900 and higher for sealing reliability at elevated temperature and pressure.
API 6A is more restrictive. The 6B flange (used through 5K class) requires a ring-type joint, period. The 6BX flange (used at 10K, 15K, and 20K class) also requires a ring-type joint, but with a different ring profile. The ring gaskets are API-specified BX-series for 6BX flanges and R-series for 6B flanges, sized to specific groove dimensions. No raised face. No flat face. The seal is the metal ring, and the bolt load compresses the ring into the matching groove on the mating flange.
The reason is straightforward. At wellhead pressures, an elastomeric or graphite gasket will not hold. The seal has to be metal-to-metal with a compressed soft iron or low-carbon steel ring, and the groove geometry has to be tight enough to resist blowout. RTJ rings, properly seated, will hold pressure well above the bolt load they were torqued to.
Material Requirements And PSL Levels
ASME B16.5 references material standards (A105, A350 LF2, A182 F316L, etc.) and requires the standard ASTM tests for those materials. The level of additional NDE, traceability, and impact testing is left to the project specification.
API 6A adds a Product Specification Level (PSL) classification on top of the base material. PSL-1 is the baseline, roughly equivalent to standard process flange QA. PSL-2 adds tensile and impact testing requirements. PSL-3 adds 100% NDE including ultrasonic or radiographic examination of the body, plus expanded chemical analysis. PSL-4 is PSL-3 with additional production testing and tighter material qualification.
On top of PSL, API 6A defines material classes (AA, BB, CC, DD, EE, FF, HH). Each class limits the allowable materials based on service environment. Class AA and BB are general service. CC limits chemistry for moderate corrosive service. DD, EE, and FF tighten further for increasingly corrosive and sour environments. HH is the most restrictive, intended for severely sour service per NACE MR0175.
A B16.5 Class 600 RTJ flange in A105 is not the same article as an API 6A 5K 6B flange in AA-PSL-2, even if they happen to share dimensions in some sizes. The latter has documented impact testing, expanded NDE, and explicit chemistry controls. The former might, depending on what the buyer asked for.
NACE MR0175 And Sour Service
When hydrogen sulfide is present in the produced fluid, sulfide stress cracking becomes the dominant failure mode for high-strength steel components. NACE MR0175 (also ISO 15156) defines material restrictions to mitigate the risk.
Both ASME B16.5 and API 6A flanges can be specified to NACE MR0175. The hardness limits kick in on bolting first. Standard A193 B7 studs have a hardness ceiling that already meets NACE if specified correctly, but the maximum hardness must be controlled and documented. B7M is the lower-hardness, lower-strength variant explicitly qualified for sour service. Nuts shift from 2H to 2HM for the same reason.
The flange body itself, in carbon steel like A105, generally complies with NACE in the normalized condition with controlled hardness. In low alloy or stainless materials, the qualification path is more involved. API 6A material classes CC through HH are structured around increasing sour service severity, which makes the specification path cleaner when the project knows it has H2S.
Dimensional Tables
ASME B16.5 Table 11 lists dimensions for sizes 1/2 inch through 24 inches across all pressure classes. Outside diameter, bolt circle, bolt hole size, number of bolts, hub dimensions, raised face diameter and height. Everything you need to lay out the flange on a drawing.
ASME B16.47 picks up from 26 inches through 60 inches. Series A (formerly MSS SP-44) and Series B (formerly API 605) are not dimensionally interchangeable. The two series have different bolt circles for the same nominal size, which has caused more than one bad surprise on a retrofit.
API 6A has its own dimensional tables indexed by nominal bore and pressure class. A 4-1/16 inch bore 5K 6B flange has specific OD, BC, and bolt pattern that does not match any ASME flange. The bore size convention is also different: API 6A flanges are specified by bore through the flange, not by nominal pipe size. A 4-1/16 inch API flange does not pair with a 4 inch ASME flange. The bolt patterns will not align.
Identification And Stamping
API 6A requires permanent marking on the flange that includes manufacturer mark, API monogram (if licensed), nominal bore, pressure rating, material class, PSL level, temperature class, and the heat number. The marking is supposed to survive paint and corrosion long enough to be readable in service.
BX ring grooves in 6BX flanges are also identified by number (BX-150, BX-151, etc.) that corresponds to the ring profile. Mismatching ring numbers is a leak path waiting to find pressure.
ASME B16.5 marking is lighter. Manufacturer, material specification, size, class, and a few optional traceability marks. The information is enough for incoming inspection but does not embed the service qualification the way API 6A does.
The Mistakes That Happen
Specifying ASME B16.5 Class 2500 for a wellhead application instead of API 6A 5K. The pressures look similar (6,170 psi vs 5,000 psi), and procurement assumes the higher number wins. The flange will hold the pressure. It will not hold the inspection because it was not built to PSL-2 or PSL-3 traceability and material class controls. On a sour wellhead, that is a regulatory and safety problem.
Assuming API 6A flanges can mate to ASME flanges with an adapter spool. Sometimes that adapter exists (called an adapter or DSA, double-studded adapter) and is a properly engineered transition with the API flange on one side and the ASME flange on the other. But you cannot just drill a custom bolt pattern in the field and call it good.
Mixing R-series ring gaskets with BX grooves or BX rings with R grooves. The ring will sit in the groove but will not seat properly. Initial hydrotest may pass; service pressure will find the leak path.
Carrying API 6A material class AA into mild sour service expecting it to comply with NACE. AA does not have the material restrictions for sour service. You need CC or higher with PSL-3.
When Projects Mix Both
Almost every full-stream project has both. A wellhead produces into a Christmas tree (API 6A) that pipes into a flowline (often API 5L or API 6D fittings) that runs to a separator or production manifold. The separator outlet typically transitions to ASME B16.5 piping for downstream gathering or refinery service.
The transition is usually a flange spool or a manifold block that has API 6A on the wellhead side and ASME B16.5 on the process side. The spool is built to the higher of the two qualifications, with full traceability through the API portion, and the gasket and bolting are sized to the specific facing on each end.
Sourcing both standards under one PO is common in oilfield projects. We stock and source API 6A 6B and 6BX flanges in 2K through 15K classes, and we cover ASME B16.5 and B16.47 across all standard pressure classes and materials. For projects that need NACE MR0175 documentation, the material certs and PSL traceability come with the flange.
Closing The Loop
The short answer to API 6A vs ASME B16.5 is that they cover different services and the choice is not really a choice. Wellhead and tree service is API 6A. Process and downstream is ASME B16.5. Where the two systems meet, the transition is an engineered spool, not a creative interpretation of dimensions.
The harder answer is in the qualification details: PSL level, material class, NACE compliance, temperature class. Those have to be specified on the line item, not assumed from the pressure class name. A 5K flange without a PSL level is just metal until somebody asks for the paperwork.
For specification help on API or ASME flanges, see our API flange offerings and our pressure and temperature rating tool, or call (281) 484-8325. Material certs, PSL documentation, and NACE compliance paperwork come with the flange.