standard
API 6A Made Simple: How to Build Wellhead Equipment That Passes
A plain-language walkthrough of API Spec 6A — how pressure testing, material selection, and fastener choices come together to make wellhead and tree equipment safe and compliant. Written so a beginner can actually follow it.
Published Jun 14, 2026
Imagine you are building a heavy steel valve that sits on top of an oil or gas well. Deep underground, the fluid is pushing up with enormous force — sometimes thousands of times stronger than the air pressure around you. If your valve cracks, leaks, or pops apart, oil or gas can blast out and cause a fire, an explosion, or a spill. So how do we make sure the equipment is safe? That is exactly what API Spec 6A is for.
API 6A is a rulebook written by the American Petroleum Institute. Its full name is "Specification for Wellhead and Tree Equipment." Think of it as a giant recipe: if you follow every step — the right metal, the right bolts, the right tests — you end up with equipment that is trusted around the world. This guide explains the main ideas in plain English. It will not replace the official standard (you always check the real document before building anything), but it will help you understand what the rules ask for and why.
One-line summary: API 6A makes sure the metal is strong enough, the bolts are tough enough, and the finished part is tested hard enough — all written down so anyone can prove it.
The Big Picture: Four Questions Every Part Must Answer
Before we dive into details, here is the whole standard boiled down to four questions. Almost everything in API 6A is just a detailed answer to one of these:
- How much pressure must it hold? → the pressure rating.
- How hot or cold will it get? → the temperature class.
- How nasty is the fluid inside? (Is it "sour" — full of poisonous, metal-eating gas?) → the material class.
- How carefully was it made and checked? → the Product Specification Level (PSL).
Once you know the answers, the standard tells you which materials, bolts, and tests you are allowed to use. Let's go through each piece.
Step 1: Pressure Rating — How Hard Will It Be Pushed?
Pressure is force spread over an area. In wells, pressure is measured in psi (pounds per square inch) or MPa (megapascals). API 6A does not let you pick any random number. You must choose from a fixed menu of rated working pressures — the pressure the equipment is officially allowed to handle every day:
| Rated Working Pressure | In psi (everyday units) |
|---|---|
| 13.8 MPa | 2,000 psi |
| 20.7 MPa | 3,000 psi |
| 34.5 MPa | 5,000 psi |
| 69.0 MPa | 10,000 psi |
| 103.5 MPa | 15,000 psi |
| 138.0 MPa | 20,000 psi |
To put 20,000 psi in perspective: a car tyre holds about 30 psi, and the deepest part of the ocean is around 16,000 psi. So the strongest API 6A equipment holds more pressure than the bottom of the Mariana Trench — while you stand right next to it. That is why the rest of the rules are so strict.
Step 2: Temperature Class — How Hot or Cold?
Metal behaves differently at different temperatures. When steel gets very cold it can turn brittle and snap like a frozen chocolate bar instead of bending. When it gets very hot it gets soft and weak. So API 6A makes you declare a temperature class — a letter that tells everyone the lowest and highest temperature the part is designed for.
Each class is just a temperature window. For example, class "P" runs from about −29 °C up to 82 °C (−20 °F to 180 °F), while colder classes like "K" and "L" go all the way down to around −60 °C and −46 °C. The colder the class, the tougher the steel has to prove it is, because cold makes steel crack more easily.
The key idea for a beginner: you must know where the equipment will be used before you choose the metal. A valve for the freezing Arctic and a valve for a hot desert well are not the same valve, even if they look identical.
Step 3: Material Selection — Choosing the Right Metal
This is one of the most important parts of the standard, and it is easier to understand than it sounds. The danger is a gas called hydrogen sulphide (H₂S). It smells like rotten eggs, it is poisonous, and — the engineering problem — it slowly attacks steel and makes it crack from the inside, even when the steel is not overloaded. Wells with H₂S are called "sour" wells. Wells without it are "sweet" (general service).
API 6A sorts metals into material classes, each given a two-letter code. The code tells you two things: whether the metal is for sweet or sour service, and how corrosion-resistant the metal needs to be in the parts that touch the fluid.
| Class | Service | Plain-English meaning |
|---|---|---|
| AA | General (sweet) | Basic. Carbon or low-alloy steel is fine throughout. |
| BB | General (sweet) | Body can be ordinary steel; the inner trim parts must be stainless or a corrosion-resistant alloy. |
| CC | General (sweet) | Everything important is stainless or corrosion-resistant alloy. |
| DD | Sour | Same shape as AA, but every metal must survive H₂S. |
| EE | Sour | Sour version of BB. |
| FF | Sour | Sour version of CC. |
| HH | Sour (toughest) | The most demanding: corrosion-resistant alloys on all wetted surfaces. |
The pattern is simple once you see it: A→B→C means "use better metal on the inside parts," and the second letter (the sour classes D, E, F, H) means "this metal must also resist the rotten-egg gas."
For any sour class (DD, EE, FF, HH), the manufacturer must follow a second rulebook called NACE MR0175 / ISO 15156, which lists exactly which metals and which hardness levels are allowed in sour service. There is also a special class, ZZ, used when conditions are so unusual that the purchaser and manufacturer agree on a custom material with full documentation.
Important real-world note the standard makes clear: choosing the right material class for the actual well is ultimately the buyer's responsibility, because only the buyer knows the true well conditions — the H₂S level, the acidity (pH), the chlorides (salt), and the temperature.
A simple way to pick a material class
- Ask: does the well have H₂S? If yes, you need a sour class (DD/EE/FF/HH). If no, a sweet class (AA/BB/CC) is allowed.
- Ask: how corrosive is the fluid overall (salt, CO₂, acidity)? The more corrosive, the further down the alphabet you go (toward CC or HH).
- Check NACE MR0175 for sour classes to confirm the exact alloy and hardness limits.
- Write it all down — the class is later stamped onto the equipment so anyone can read it.
Step 4: Fasteners — Choosing the Bolts That Hold It Together
Big steel parts are bolted together with heavy studs and nuts called closure bolting. These bolts are doing a serious job: they squeeze a metal gasket hard enough to seal in thousands of psi. If the bolts are too weak, too brittle, or too soft, the joint leaks or the bolts snap. So API 6A treats bolting almost as carefully as the body itself.
The strength rule (with an easy example)
Every metal has a yield strength — the stress at which it stops springing back and starts to stretch permanently (like a paper clip you have bent too far). API 6A says the stress in the bolts is not allowed to reach that point. The allowed limit is:
Allowable bolt stress = 0.83 × yield strength of the bolt material.
In words: you are only allowed to use about 83% of the bolt's strength — the remaining 17% is a built-in safety margin. And you must check this stress at the thinnest part of the bolt (the threads), under the worst combination of loads: the initial tightening, the working pressure, and the high-pressure test. Pressure pushing on the seal, the gasket squeeze, and any extra mechanical or heat loads all count.
Worked example. Suppose a bolt's yield strength is 100,000 psi. Then the most stress you are allowed to put into it is 0.83 × 100,000 = 83,000 psi. If your calculation shows the bolt would actually feel 90,000 psi in service, that bolt is not allowed — you must use a stronger bolt, more bolts, or a bigger bolt.
Bolt quality and temperature
It is not enough for the bolt to be strong on paper; the standard also controls how the bolt itself was made and tested. Closure bolting must be manufactured to dedicated bolting standards (API 20E or API 20F), and each is given a Bolting Specification Level (BSL) — higher BSL means more testing and traceability. The minimum BSL required goes up as the PSL of the equipment goes up.
Temperature matters for bolts too. Just like the body, the bolt material has to stay tough at the coldest temperature class the equipment is rated for. The standard provides tables of which bolt materials are allowed for each temperature class, so you do not accidentally use a bolt that turns brittle in the cold.
Step 5: Product Specification Level (PSL) — How Carefully Was It Made?
Two valves can have the same pressure rating and the same metal, yet one is checked far more thoroughly than the other. API 6A captures this with the Product Specification Level, numbered PSL 1, 2, 3, and 4 (plus a special "3G" for gas-tested parts).
- PSL 1 — the basic level of inspection and testing.
- PSL 2 and PSL 3 — progressively more checks: more non-destructive examination (like X-rays and ultrasound of the steel), tighter material checks, longer pressure tests.
- PSL 3G — PSL 3 plus a gas test, because gas finds tiny leaks that water can hide.
- PSL 4 — the most demanding level of all.
Think of PSL like exam difficulty: PSL 1 is a quick quiz, PSL 4 is a full final exam with every question checked twice. Higher pressure and more dangerous service usually call for a higher PSL. The standard gives tables that limit which PSL you can use for a given combination of material class and pressure rating, and Annex B offers guidance (not strict rules) on choosing one.
Step 6: Pressure Testing — Proving It Actually Holds
This is the dramatic part: before any equipment is shipped, it gets squeezed with real pressure to prove it will not leak or break. There are two main kinds of factory test.
The hydrostatic shell test (testing the body)
"Hydrostatic" just means "using water." Water is used because it barely compresses — if a part bursts during a water test, the water stops pushing almost instantly, so it is far safer than testing with gas. The body of the equipment is filled with water and pumped up to a pressure higher than its working pressure. For most equipment the shell test pressure is 1.5 times the rated working pressure.
Example: a valve rated for 10,000 psi is shell-tested at about 15,000 psi. If it holds that without leaking, it has comfortably proven it can handle its everyday 10,000 psi job.
The seat test (testing that the valve actually shuts off)
A valve must do two things: contain pressure and stop the flow when closed. The seat test checks the second part — it pressurises one side of the closed valve to make sure nothing sneaks through to the other side.
Hold periods — you have to wait and watch
A test is not "pump it up and let it go." You must hold the pressure steady and watch for leaks for a set amount of time. The required hold periods get longer at higher PSLs — another reason higher PSL means more confidence. Here is the idea in a simplified table:
| Test stage | PSL 1 & 2 | PSL 3 & 4 |
|---|---|---|
| Primary hold | 3 minutes | 3 minutes |
| Secondary hold | 3 minutes | 15 minutes |
During the hold, the pressure must stay steady (it is not allowed to creep up or drop beyond small limits), and a leak counts only if fluid escapes during the hold period — not the dribbles while you are still pumping up or bleeding down. The test pressure gauge or transducer itself has to be accurate (within about ±2%), because a sloppy gauge would make the whole test meaningless. All water testing is done before any gas testing, and after testing the equipment is drained and protected from rust.
The Glue That Holds It All Together: Documentation
Here is something beginners often miss: API 6A is as much about paperwork as it is about steel. A part is only "compliant" if you can prove it. That means traceable records of which batch of metal was used, the welding procedures, the inspector qualifications, the test charts showing the pressure held steady, and the final stamped markings on the part itself (pressure rating, temperature class, material class, PSL, and more). If it is not documented, for compliance purposes it did not happen.
Putting It Together: A Mini Compliance Checklist
If you were responsible for making one API 6A part, here is the journey from start to finish:
- Define the job. Pick the rated working pressure (from the fixed menu), the temperature class, and the material class for the actual well conditions.
- Pick the PSL. Match it to the pressure and service; higher risk → higher PSL.
- Design it. Run the strength calculations so nothing exceeds its allowable stress — including the 0.83 × yield-strength rule for the bolts.
- Choose materials & bolts. Use a metal that fits the class (NACE MR0175 for sour service) and bolting at the right BSL and temperature class.
- Make it. Follow qualified welding and manufacturing procedures, with the inspections your PSL requires.
- Test it. Hydrostatic shell test (about 1.5× working pressure), seat test, and gas test if required — each held for the full time and recorded.
- Mark and document it. Stamp the ratings on the part and keep the full paper trail.
Key Words, Quickly
- Rated working pressure — the everyday pressure the part is allowed to handle.
- Sour service — fluid containing H₂S, the gas that cracks steel.
- Material class (AA–HH) — the code for which metal is needed and whether it is sour-rated.
- PSL 1–4 — how thoroughly the part is inspected and tested.
- Hydrostatic test — a water-pressure test, usually 1.5× the working pressure.
- Yield strength — the stress where metal stops springing back; bolts are limited to 83% of it.
- NACE MR0175 / ISO 15156 — the partner rulebook for metals in sour service.
One Last Thing
This guide explains the ideas behind API 6A in everyday language so you can understand how compliant wellhead equipment is designed, built, and proven. It is a learning aid, not the rulebook itself. Before designing, manufacturing, or certifying any real equipment, always work from the current official API Spec 6A and the standards it points to (such as NACE MR0175 and the API 20-series bolting standards), and follow the guidance of a qualified engineer.
Check out the short explainer video here: https://www.youtube.com/watch?v=7jxu_3NmeCc