Basic Rules for PCB Routing: Design Guidelines and Best Practices

Published: March 7, 2026 · Updated: March 7, 2026

PCB (Printed Circuit Board) layout and routing are critical steps in the design of electronic devices, as they directly affect circuit performance and reliability. In this article, we will introduce some basic rules for PCB layout and routing to ensure the proper operation of the circuit board.

I. Basic Rules for Component Layout

1. Circuit Modularization

PCB layout should be organized by circuit modules. Circuits with the same function should be grouped into a single module. Within each circuit module, components should be grouped according to the principle of proximity, and digital and analog circuits should be laid out separately.

2. Distance between mounting holes and components

Components and devices must not be mounted within 1.27 mm of non-mounting holes, such as alignment holes and standard holes. For M2.5 screws, components must not be mounted within 3.5 mm of the mounting hole; for M3 screws, they must not be mounted within 4 mm.

3. Avoid vias

Avoid placing vias directly beneath horizontally mounted components such as resistors, inductors (through-hole), and electrolytic capacitors to prevent short circuits between the vias and the component casings after wave soldering.

4. Distance Between Components and the Edge of the Board

The distance between the outer edge of the component and the edge of the board should be at least 5 mm.

5. Spacing Between SMT Components

The distance between the outer edge of an SMT component’s pad and the outer edge of an adjacent through-hole component should be greater than 2 mm.

6. Treatment of Metal Enclosure Components and Metal Parts

Metal-enclosed components and metal parts (such as shielding boxes) must not come into contact with other components and must not be placed near printed traces or pads. The distance between them must be greater than 2 mm. The distance from the outer edge of square holes—such as alignment holes, fastener mounting holes, and elliptical holes—on the board to the board edge must be greater than 3 mm.

7. Handling of Heating Elements

Heating elements must not be placed near conductors or heat-sensitive components; in particular, high-heat equipment should be distributed evenly.

8. Layout of Electrical Outlets

Power sockets should be placed as close as possible to the edges of the printed circuit board, and the terminals of the power sockets should be located on the same side as the busbars to which they are connected. Power sockets and other soldered connectors should not be placed between connectors, in order to facilitate soldering and the design and routing of power cables. The spacing between power sockets and soldered joints should be arranged to allow for easy insertion and removal of power plugs.

9. Layout of Other Components

All IC components should be aligned on one side, and the polarity markings on polarized components should be clearly visible. There must be no more than two directions of polarity markings on a single printed circuit board; if there are two directions, they must be perpendicular to each other.

10. PCB Trace Density

The trace layout on the board should be appropriately dense. When there are significant variations in density, a copper mesh should be used to fill the gaps, with a mesh size greater than 8 mil (or 0.2 mm).

11. Preventing Solder Paste Loss

There must be no vias on SMD pads to prevent solder paste from flowing out and causing cold solder joints. Critical signal lines must not pass through socket pins.

12. Layout of Surface-Mount Components

Surface-mount components should be aligned on one side only, and the orientation of the characters should match the orientation of the package.

13. Layout of Polarization Devices

Polarized components should be oriented as uniformly as possible, with the polarity markings on the same board.

II. Component Wiring Rules

1. Cabling Distance and Location

The distance from the routed trace to the edge of the PCB should be 1 mm or less; routing is not permitted within 1 mm of mounting holes.

2. Width of Power and Signal Cables

PCB power traces should be as wide as possible, with a minimum width of 18 mil; signal traces must be at least 12 mil wide. For traces connecting to and from the CPU, the trace width must be at least 10 mil (or 8 mil), and the spacing between traces must be at least 10 mil.

3. Through-hole Specifications

Standard through-holes should not be less than 30 mil.

4. Plug-in Component Specifications

For dual through-hole components, use 60-mil pads and 40-mil via diameters. For 1/4W resistors, the pad size is 51 × 55 mil (0805 surface-mount); for through-hole mounting, the pad size is 62 mil and the via diameter is 42 mil. For non-polarized capacitors, the specifications are 51 × 55 mil (0805 surface-mount); when mounted as through-hole components, the pad size is 50 mil and the hole diameter is 28 mil.

5. Signal Line Layout

Note that power and ground wires should be arranged in a radial pattern, and signal wires should not form loops.

These basic rules will help ensure the stability, reliability, and performance of PCBs. Adhering to these rules during the PCB design process will help minimize potential problems and improve the operational efficiency of electronic devices.

Naming Conventions and Terminology Standards for Version Management

Grouping and standardizing the terminology related to cabling rules and version management by concept is more conducive to aligning reviews than continuing to use customary terms; refer to the specifications for guidance.EMI Design Specifications and Control Principles。

The same term often carries different default assumptions across the design, procurement, production, and inspection phases; without prior alignment, it is easy for all parties to arrive at conclusions that are correct in their own right but mutually contradictory. It is recommended to establish a terminology cross-reference table that specifies the scope of application, the version of the reference document, and the responsible party for verification; obsolete terms should be archived separately. This page does not provide any line widths, spacing values, hole diameters, or software setup instructions; all descriptions from the original text remain unchanged.

Naming Conventions and Terminology Standards for Version Management

  • Classify by concept and assign uniform names.
  • The default assumptions differ across the various stages.
  • The cross-reference table specifies the basis and functions.
  • Invalid names are kept on file separately.
  • Comparisons are only valid when the criteria are consistent.
  • This article does not provide operating conditions.

Document and Version Control

Requirements for tasks or test documents with the same name may vary across different versions; executing them based on name rather than version will result in a loss of comparability. For standard compilation, please refer toCommon IPC Standards for Printed Circuit Boards。

It is recommended that document numbers, version numbers, effective dates, and approver information be retained in the records, and that redistribution permissions be restricted; only the currently valid version should be kept on-site, while obsolete versions should be stored separately. Applicable standards, customer specifications, and internal operating procedures belong to different levels of hierarchy; the order of precedence in the event of a conflict should be specified in advance in the contract or technical agreement. This page does not provide any line width, spacing, or hole diameter values, nor any software setup procedures; the descriptions already present in the original text remain unchanged.

Document and Version Control

  • Versions with the same name may differ.
  • No., Version, Date, Approver—all recorded.
  • Only the currently valid version will remain on-site.
  • Standard customer component hierarchy.
  • Priorities are agreed upon in advance.
  • The conclusion does not change depending on who cites it.

Supplier Data Sheet and Responsibility Interface

Performance and safety information related to wiring rules and version control should be derived from controlled documentation provided by the supplier, rather than from anecdotal experience or visual impressions. For regulatory guidance, please refer toWhat is RoHS?。

It is recommended to document the name, version, effective date, responsible department, and approver of the documentation, and to cross-reference it with the procurement specifications and acceptance criteria; when the documentation is updated or the supplier changes, the authorized department shall assess the scope of impact and initiate a re-evaluation. This page does not provide any line width, spacing, or aperture values, nor does it include software setup procedures; the descriptions already present in the original text remain unchanged.

Supplier Data Sheet and Responsibility Interface

  • The information is derived from controlled sources.
  • Name, Version, Date, Approver—all recorded.
  • Cross-reference with the procurement specifications and acceptance criteria.
  • Updates to the data trigger a re-evaluation.
  • The data tables and regulations shall prevail.
  • This article does not specify any terms of use.

Safety, Environmental Protection, and Applicable Regulations

On-site obligations related to wiring rules and version control should be verified separately in accordance with applicable laws and local regulatory requirements; external experience cannot be applied directly. For guidance on interpreting standards, please refer toA Comprehensive Overview of Common Printed Circuit Board Standards。

It is recommended to establish a list of applicable regulations that documents the regulation name, version, effective date, responsible functions, and review milestones, and to cross-reference compliance conclusions with procurement and delivery documents. Matters such as occupational protection, waste disposal, and information disclosure shall be governed by on-site controlled documents, supplier data sheets, and local regulations, and shall be reviewed by appropriately qualified personnel before being filed. This page does not provide any line width, spacing, or aperture values, nor any software setup procedures; the descriptions already present in the original text remain unchanged.

Safety, Environmental Protection, and Applicable Regulations

  • The list of regulations is maintained separately.
  • Specify the version date and responsibilities.
  • Compliance conclusions and procurement are interrelated.
  • Refer to the on-site documentation for safety precautions.
  • Verify and file the records of qualified personnel.
  • This article does not provide operating conditions.

Staff Authorization and Position Qualifications

Personnel who access controlled data, make decisions regarding routing rules and version control, or sign off on records must have explicit authorization; for guidance on reliability statements, please refer toPCB Reliability Design: DfR Principles and Applications。

It is recommended to maintain an authorization list that records job titles, scope of authorization, effective dates, approving authorities, and review points, with revoked authorizations clearly marked. Revoke permissions promptly when personnel are reassigned or a project is completed. Matters involving safety and regulatory interpretation should be handled by personnel with the appropriate authority; this document does not provide any methods for qualification determination, training content, or decision thresholds. This page does not provide any line width, spacing, or aperture values, nor does it provide software setup procedures; the descriptions already present in the original text remain unchanged.

Staff Authorization and Position Qualifications

  • The list of authorized personnel is maintained by position.
  • Scope, dates, and approval authority are recorded together.
  • Revoke access privileges promptly once the job reassignment is complete.
  • Separate label for revoked authorizations.
  • Security explanations are provided by the authorized department.
  • This article does not provide a threshold for determination.

Record Fields and the Chain of Custody

The value of records related to coding conventions and version control lies in their traceability; fields should be included in management information, and reference materials for educational purposes may be consulted.A Guide to PCB Materials。

It is recommended to record the time of discovery, the stage at which it was discovered, the sample identification, the version of the reference document, the positions responsible for execution and review, the conclusion category, the nonconformance report number, and the disposition status, and to link these to the batch, work order, and report numbers; the disposition conclusion must be confirmed in writing by an authorized official, and the recipient’s acknowledgment must be filed. This page does not provide any line width, spacing, or hole diameter values, nor any software setup procedures; the descriptions already present in the original text remain unchanged.

Record Fields and the Chain of Custody

  • The field is located in the traceability information.
  • The date of discovery is recorded alongside the specimen.
  • Retain based on version and position.
  • Disposition is confirmed by the authorized function.
  • The acknowledgment and the re-evaluation conclusion cross-reference each other.
  • This article does not provide instructions on how to proceed.

Review Records and Conclusions Are Traceable

The value of reviews related to coding standards and version control lies in documenting traceable conclusions, rather than merely reaching a verbal agreement on the spot.

It is recommended that review records include the topic, participating functions, the version of the reference document, conclusions, outstanding items, and closure status, and that they cross-reference the glossary and record ledger. For items on which consensus has not been reached, the responsible person and the date for re-evaluation should be specified to prevent the issue from recurring in a different form in the next delivery cycle; Relevant records shall be archived by project and version, with invalid conclusions clearly marked. This page does not provide any line widths, spacing values, hole diameters, or software configuration steps; all descriptions already present in the original text remain unchanged.

Review Records and Conclusions Are Traceable

  • The review results in traceable conclusions.
  • The basis for the agenda items is the same.
  • The conclusions and outstanding issues are listed side by side.
  • Write the responsibilities and tasks for pending items.
  • Several lists reference each other.
  • Invalid conclusions should be marked separately.

Outsourcing Agreement with Suppliers

Clearly define the boundaries of responsibility between external partners, suppliers, and internal functions regarding cabling rules and version control to avoid any gaps where no one is responsible for verification. Management guidelines can be found in the reference document.Management Guidelines for 5G PCBs。

It is recommended that the agreement specify the scope of delivery, compliance documentation accompanying the goods, procedures for reporting deviations, prohibited actions, and principles for handling breaches of contract, and require the other party to provide written notice of any changes to document versions. Any delivery beyond the agreed scope may only be accepted after written confirmation by the authorized department; documents of unknown origin shall not be included in the controlled document system nor used as the basis for acceptance. This page does not provide any line width, spacing, or hole diameter values, nor any software configuration steps; the descriptions already present in the original text remain unchanged.

Outsourcing Agreement with Suppliers

  • The scope of responsibility is specified in the agreement.
  • The scope of delivery and compliance documentation are clearly defined.
  • Any deviation from the standard notification method must be agreed upon.
  • Any changes to the information must be notified in writing.
  • Deliveries made beyond one's authority require authorization and confirmation.
  • Items of unknown origin are not accepted for control.

Exceptions and Exemptions from Approval

When on-site conditions are limited, there are always exceptions to the existing rules regarding cabling and version control; the key is to turn those exceptions into verifiable, written conclusions.

It is recommended to establish an exemption record that covers the reason for the request, the scope involved, the scope of impact, the basis for substitution, the approving authority, and the re-evaluation milestones, and that cross-references the review record. An exemption does not constitute permanent approval; when subsequent versions of documentation, suppliers, or supporting documents change, a reassessment should be conducted to determine whether the historical conclusion remains applicable. This page does not provide any line width, spacing, or aperture values, nor does it include software setup procedures; the descriptions already present in the original text remain unchanged.

Exceptions and Exemptions from Approval

  • Exceptions due to time constraints are inevitable.
  • Exceptions must be documented in writing.
  • Record the reason, scope, and basis.
  • The approval functions and re-evaluation milestones are specified.
  • Cross-references to the review records.
  • Do not provide a value for the alternative condition.

Changes to Trigger Conditions and the Scope of Re-evaluation

Any change to the document version, supplier, applicable regulations, or supporting documentation should trigger a targeted re-evaluation of the cabling rules and related version control conclusions.

The value of a re-evaluation lies in confirming whether historical conclusions remain valid, rather than redoing the entire record from scratch. It is recommended to document changes, the scope of impact, re-evaluation conclusions, and conditions for restoration, and to cross-reference these with the original evaluation records and non-conformance reports. For cross-departmental projects, the authorized department should uniformly determine the scope of the re-evaluation to avoid having two sets of criteria coexisting for the same project. This page does not provide any line width, spacing, or hole diameter values, nor does it include software setup instructions; the descriptions already present in the original text remain unchanged.

Changes to Trigger Conditions and the Scope of Re-evaluation

  • Any change will trigger a reassessment.
  • Determine whether historical conclusions are applicable.
  • The scope of impact and conclusions remain the same.
  • Clearly state the conditions for restoration.
  • Cross-references with the exception record.
  • Avoid having two sets of criteria operating in parallel.

Comparison of Governance Dimensions

Comparing cabling rules with the scope, sources, and record formats of version control helps quickly identify gaps in policies or records that need to be addressed during an audit. The table below provides only a qualitative classification and does not replace the conclusions of an audit or approval process.

The table does not provide any formulations, temperatures, times, pressures, quantities, or pass/fail criteria. Actual conclusions must be jointly confirmed based on the supplier’s data sheets, on-site operating procedures, applicable standards, contracts, and local regulations, and must be reviewed by personnel with the appropriate qualifications before being filed. The purpose of the table is to ensure that no management items are overlooked; it is not intended to replace any round of actual review or validation. This page does not provide any line widths, spacings, pore sizes, or software setup procedures; the descriptions already present in the original text remain unchanged.

Comparison of Governance Dimensions

  • The form is used for the initial screening review.
  • It is merely a qualitative classification.
  • This is not a substitute for actual verification.
  • No values are provided.
  • The documents and regulations shall prevail.
  • The review findings must be filed.

Client Review and Delivery Checklist

It is recommended to verify, item by item, the terminology and definitions related to wiring rules and version control, as well as the reference versions, supplier documentation, list of regulations, personnel authorizations, record-keeping ledgers, review records, outsourcing responsibilities, exemption approvals, and re-evaluation conclusions. For welding standards, please refer toPCBA Soldering Standards。

The checklist should retain the verification conclusions and descriptions of discrepancies for each round as a basis for revising the procedures. This approach advances management from “filling in records only when asked” to a system characterized by “clear guidelines, defined responsibilities, and traceable processes,” and also enables the rapid identification of specific steps during client audits or internal traceability reviews. For cross-departmental projects, it is recommended that a single checklist be used as a delivery baseline shared by all three parties, with the effective version clearly indicated. This page does not provide any line widths, spacing, hole sizes, or software configuration steps; the descriptions already present in the original text remain unchanged.

Client Review and Delivery Checklist

  • Go over the specifications and documentation item by item.
  • Ensure that all statutory authorizations and records are thoroughly reviewed.
  • Review the exemption from outsourcing in conjunction with the verification.
  • The conclusions of the re-evaluation must be consistent.
  • Description of the discrepancy write-back system.
  • The three parties share a single baseline.

Frequently Asked Questions on Coding Conventions and Version Control Compliance Management

1. Why is it important to standardize the terminology first?

Because the same term often carries different underlying assumptions in the design, procurement, production, and inspection phases, failure to align these assumptions in advance can easily lead to conclusions that are correct from each party’s perspective but mutually contradictory. It is recommended to establish a terminology cross-reference table that specifies the applicable scope, the version of the reference document, and the responsible party for verification; obsolete terms should be archived separately. This page does not provide any line widths, spacing values, hole diameters, or software configuration steps; all descriptions already present in the original text remain unchanged.

2. Why should data and information be based on controlled versions?

Since requirements for documents with the same name may vary across different versions, referencing them by name alone may compromise comparability. It is recommended to record the document number, version number, effective date, and approver, and to archive superseded versions separately; the order of precedence for applicable standards, customer specifications, and internal documents should be specified in advance in the contract.

3. How should safety and environmental protection obligations be incorporated into documents?

It is recommended to establish a list of applicable regulations, documenting the names, versions, effective dates, responsible functions, and review milestones, and to cross-reference compliance conclusions with procurement and delivery documents; occupational safety and waste disposal shall be governed by on-site controlled documents, supplier data sheets, and local regulations. This page does not provide any line width, spacing, or hole diameter values, nor does it include software setup procedures; the descriptions already present in the original text remain unchanged.

4. What information should the list of authorized personnel include?

It is recommended to specify the positions covered, the scope of authorization, the effective date, the approval functions, and the review points, and to clearly identify revoked authorizations. Revoke permissions promptly when personnel are reassigned or a project ends. Matters involving security and regulatory interpretation should be handled by personnel with the appropriate authority; this page does not provide any methods for qualification determination or decision-making thresholds.

5. What fields should the ledger include?

This should include the time of discovery, the stage at which it was discovered, the sample identification, the version of the reference document, the positions responsible for execution and review, the conclusion category, the nonconformance report number, and the resolution status, and should be linked to the batch, work order, and report numbers. The fields should focus on traceability information rather than recording any reusable conditions. This page does not provide any line widths, spacing values, aperture sizes, or software configuration steps; the descriptions already present in the original text remain unchanged.

6. Under what circumstances should a re-evaluation be initiated?

Any change to the version of the documentation, the supplier, the applicable regulations, or the supporting documents should trigger a targeted re-evaluation to confirm whether the previous conclusions remain valid. It is recommended to document the changes, their scope of impact, the re-evaluation conclusions, and the conditions for reinstatement to avoid having two sets of supporting documentation coexisting for the same project.

7. Why should the scope of responsibility for outsourced work be included in the agreement?

Since verbal agreements cannot be traced back after a version update or personnel changes, it is recommended to clearly specify the scope of delivery, the compliance documentation accompanying the shipment, the procedures for reporting deviations, and prohibited actions, and to require the other party to provide written notification of any changes to document versions. Documents of unknown origin should not be included in the controlled document system.

8. What should be included in the delivery checklist prior to client review?

Recommendations should include terminology definitions, applicable versions, supplier information, a list of regulations, personnel authorizations, record-keeping logs, review records, outsourcing responsibilities, exemptions from approval, and re-evaluation conclusions. For each round, retain the verification conclusions and descriptions of discrepancies, and update the management system accordingly. This page does not provide any line width, spacing, or aperture values, nor does it include software setup procedures; the descriptions already present in the original text remain unchanged.

Conclusion

PCB layout and routing are critical steps in the design of electronic devices, as they directly affect circuit performance and reliability. By following the basic rules outlined above, you can ensure that your PCB design is more stable and reliable. At the same time, different electronic devices may have specific requirements, so it is essential to adjust and optimize your PCB design according to those specific needs.

We hope these guidelines will help you improve your PCB layout and routing, thereby enhancing the quality and performance of your electronic products. If you need further assistance or have any questions, please feel free to contact us.

Frequently Asked Questions (FAQs)

1. Why are components and devices organized into circuit modules?

Breaking circuits down into modules helps organize and manage complex circuits, improving efficiency in maintenance and troubleshooting.

2. Why should components not be mounted around mounting holes?

This prevents interference between the components and the mounting holes, ensuring the safety and stability of the components.

3. Why is it important to ensure the directional consistency of polarizing components?

Ensuring that polarized components (such as electrolytic capacitors) are oriented correctly guarantees their proper operation and prevents damage caused by reverse connection.

4. Why should vias be avoided on SMD pads?

Vias can cause solder paste to leak, which can lead to cold solder joints and connection issues.

5. Why are power and signal cables arranged in a radial pattern?

A radial layout helps reduce electromagnetic interference and improve circuit stability.