• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

wondercadWonderCAD

Learn CAD and Download Files

  • Download
    • 3D Model
    • Drawing Template
    • Title Block
    • CAD Block
  • Tutorials
0

How to Use the RECTANGLE Command in AutoCAD

Updated: June 2, 2026 - AutoCAD

Share on:

rectangle-autocad

The RECTANGLE (RECTANG) command in AutoCAD is used to create square or rectangular polyline objects instantly.

This command provides several options for creating rectangles by specifying parameters such as dimensions, area, and rotation.

If needed, you can also create rectangles with chamfers or fillets at each corner in a single command session.

CommandRECTANGLE
FunctionCreate square or rectangular polyline objects instantly
Iconrectangle-icon
ShortcutREC

The RECTANGLE command belongs to the DRAW command group.

You can find and activate this command from the Draw panel on the Ribbon under the Home tab. You can also find it in the Draw menu on the Menu Bar.

Draw-Command-Location

If you prefer using the command line, type RECTANGLE or simply type REC and then press Enter.

A. How to Use the RECTANGLE Command

You can create many variations of rectangle objects with a single command. However, in this section, I will only show how to create a basic rectangle using the default method.

Examples of creating rectangles by specifying dimensions, area, and corner styles are explained later in the Examples section.

To create a standard rectangle using the default method, follow these steps:

rectangle-default-mode
  1. Activate the RECTANGLE command.
  2. Specify the first corner point.
  3. Specify the opposite corner point of the rectangle.

You can specify points using various methods. Read the full explanation here.

B. Prompts and Options

When running the RECTANGLE command, there will be several prompts and options on the command line, including:

  • Specify first corner: Specify the first corner point of the rectangle.
  • Specify other corner: Specify the opposite corner point of the rectangle. This point and the first corner form a diagonal line.
  • Chamfer: Use this option to create chamfers on all corners of the rectangle.
  • Elevation: Use this option to specify the elevation of the rectangle along the Z-axis.
  • Fillet: Use this option to create fillets on all corners of the rectangle.
  • Thickness: Use this option to specify the thickness of the rectangle along the Z-axis.
  • Width: Use this option to specify the width of the rectangle polyline (x,y axis).

The following options become available after specifying the first corner:

  • Area: Use this option to create a rectangle by specifying its area.
  • Dimension: Use this option to create a rectangle by specifying its length and width.
  • Rotation: Use this option to create a rectangle by specifying a rotation angle.

C. Examples

In this section, I will show some examples of creating rectangles using commonly used parameters.

» Create a Rectangle by Specifying Its Dimensions

For this example, we will create a rectangle measuring 20 × 10, where 20 is the horizontal length (X-axis) and 10 is the vertical length (Y-axis).

Example-of-Rectangle-1

To create the rectangle shown above:

  1. Activate the RECTANGLE command.
  2. Specify the first corner point.
  3. Select the Dimensions option from the command line.
    • Specify the rectangle length (X-axis): type 20 and press Enter.
    • Specify the rectangle width (Y-axis): type 10 and press Enter.
  4. Specify the opposite corner point.

» Create a Rectangle by Specifying Its Area

When using the Area option, AutoCAD will ask you to specify either the Length (X-axis) or Width (Y-axis).

In this example, we will create a rectangle with an area of 250 and a length of 17 units along the X-axis.

Rectangle-Area

To create the rectangle shown above:

  1. Activate the RECTANGLE command.
  2. Specify the first corner point.
  3. Select the Area option from the command line.
    • Type 250 and press Enter.
  4. Select the Length option.
    • Type 17 and press Enter.
  5. Specify the opposite corner point.

» Create a Rectangle with Fillets

For this example, we will create a rectangle measuring 20 × 10 with R3 fillets at all corners.

chamfred-rectangle

To create the rectangle shown above:

  1. Activate the RECTANGLE command.
  2. Select the Fillet option from the command line.
    • Specify the fillet radius: type 3 and press Enter.
  3. Specify the first corner point.
  4. Select the Dimensions option from the command line.
    • Specify the rectangle length (X-axis): type 20 and press Enter.
    • Specify the rectangle width (Y-axis): type 10 and press Enter.
  5. Specify the opposite corner point.

How to Use the POLYLINE Command in AutoCAD
How to Use the POLYGON Command in AutoCAD
Related Tutorials:
  • What Is AutoCAD? Functions, Advantages, and Limitations
  • osnap-autocadOSNAP & Snap Override in AutoCAD
  • polygon-command-autocadHow to Use the POLYGON Command in AutoCAD
  • DRAW-MODIFY-ANNOTATION3 Essential AutoCAD Command Groups for Beginners

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow via Email

Get notifications of the latest posts via email for free.

  • About
  • Contact
  • Privacy
  • Disclaimer

Copyright © 2026