A method and system for providing calculated fields in a document processing environment. A calculated field comprises a beginning field character, a field code, and an ending field character. The field code specifies a behavior of the calculated field. A user may insert a calculated field into a document. After insertion, the result of the calculated field can be determined based on the behavior specified by the field code. The result of the calculated field is then stored within the document and preferably within the calculated field. The document can be displayed in either field code or results mode. In field code mode, when the document is displayed, the calculated field is displayed (i.e., beginning field character, field code, and ending field character). In results mode, when the document is displayed, the result is displayed, rather than the calculated field.