The relation between engineering as a profession and society can be understood as a hypothetical social contract. The contract is hypothetical because no actual agreement has taken place; representatives from engineering and society never sat down and negotiated terms of a social contract. Yet the relation that has naturally evolved between engineering and society can be summarized as a social contract where each party gives something beneficial to the other. Contracts, in general, are mutually beneficial exchanges; to be legitimate these agreements must be entered into knowingly and voluntarily. These two requirements form the basis of much of engineering ethics, especially the different codes set forth by different engineering professional societies. Engineers provide products and services that benefit clients and society. But these also entail risks that, while they cannot be eliminated, can be minimized. Engineers are duty-bound to minimize these risks and inform the client and public about the nature of these risks. They are also required to participate in the social, collective decision as to the acceptability of these risks by communicating technical engineering matters in a clear and accessible manner. The first table below summarizes the exchange between society and the profession of engineering that forms the basis of this social contract.
Table 2: Engineering's Contract with Society
| Society to Profession |
Profession to Society |
| Autonomy (Society allows experts to regulate themseives) |
Self-Regulation (Experts regulate themselves toward public welfare) |
| Prestige (Society gives engineers prestige and adequate compensation for services) |
(Engineers promise to hold public welfare paramount in engineering practice) |
| Monopoly (Society allows profession to determine those allowed to practice) |
Engineers promise to practice ethically and, through codes, to establish and enforce high practical and disciplinary standards) |
Working from this social contract, engineering has formulated various rules, principles, and duties that have been embodied in different codes of ethics such as that of the ECPD (Engineering Council for Professional Development), the NSPE (National Society of Professional Engineers), the ASME (American Society of Mechanical Engineers), the ASCE (American Society of Civil Engineers), and the CIAPR (Colegio de Ingenieros y Agrimensores de Puerto Rico). These codes can usefully be interpreted as stakeholder codes where different engineering stakeholders have been identified along with their needs and correlative engineering duties based on recognizing and respecting these needs. (An engineering stakeholder is any group or individual dependent on the activities of engineers. Their "stakes" consist of the needs and interests they have riding on the outcome of engineeirng decisions and actions.) The following table identifies four key engineering stakeholders, their interests and engineering duties based on preserving or promoting these stakes.
Table 3: Outlines of Engineering Stakeholder Codes of Ethics
| Engineering Stakeholder> |
>Stake, Need, or Interest> |
>Engineering Duty> |
| Public |
Wellbeing, health, safety, environmental integrity |
Duty to hold paramount the health, safety, welfare, and environment of the public |
| Client |
Due to knowledge gap, the need to have engineers treat their interests as their (engineer's) own |
Exercising due care in professional judgment avoiding conflicts of interests and maintaining confidentiality |
| Profession |
Reputation, honor, and dignity |
Engineers have duty to uphold the reputation, honor, and dignity of the profession in activities like testifying in court as expert witnesses |
| Colleges/Peers (other engineers) |
Collegial, cooperative relations with peers |
Engineers must treat their colleagues with respect including avoiding disloyal competition, public criticism, and comparative advertising. |