How to design a contact form people actually finish

Contact form design that gets messages sent: the fields to keep, labels, inline validation, spam checks without puzzles, WCAG 2.2, GDPR basics and the HTML.

Summarize with
Line drawing of three visitors heading into a tall web page with a headline, a picture and a green button, a cursor clicking it and one visitor coming out

Good contact form design asks only for what you need to reply, in one column, with a visible label on every field. It checks each answer when the person leaves the field, explains any error in words next to that field, keeps out spam without a puzzle, and ends on a success message that says what happens next and when. For most businesses that means three fields: name, email and message.

I'm a design engineer: I design websites and products and build them in production code, so I see a contact form from both sides, the screen and the HTML. Below: fields, states, live examples, WCAG 2.2, privacy and the markup. Contact forms are part of my landing page design work.

What a contact form has to do

A contact form has three readers: the visitor, who wants to ask without effort; the browser and screen reader, which need to understand each field; and whoever replies, who needs enough detail to answer on the first try. So I design it as a set of states, not one screen: empty, filling in, error, sending, sent and failed.

How many fields a contact form needs

A field earns its place by changing your reply. If you'd answer the same way without it, cut it.

The research supports fewer fields, without a magic number. HubSpot's Dan Zarrella analysed more than 40,000 of HubSpot customers' landing pages and found conversion fell slightly as fields were added, but that several text areas and several drop-downs had a much stronger effect than plain one-line fields. In checkout forms, Baymard Institute's 2024 benchmark found the average flow had 11.3 form fields, while most sites need only 8. A checkout isn't a contact form, but the finding travels: most forms ask for more than the job needs.

FieldKeep it?Why
NameUsuallyYou'll use it in the reply. One field, not first and last
EmailAlwaysIt's how you reply
MessageAlwaysThe reason they came
PhoneOnly if you will callOptional, and say why you ask
CompanyFor B2B salesLets you research before replying
Budget or topic drop-downRarelyHelps routing, but drop-downs cost the most effort

One long form can also become a short stepped one. Stripe's contact sales page opens on a card with just two fields, work email and country or region, and a Next button.

Labels, layout and the button

Labels above fields, always visible. Nielsen Norman Group's article on placeholders (Katie Sherwin, 11 May 2014) explains why placeholder text fails as a label: it disappears when you type, so people forget what a field asked for, can't check their answers before sending, and often read grey hint text as an answer already filled in.

One column. One clear path from top to bottom, on every screen size.

Mark the odd one out. If most fields are required, mark the optional ones "(optional)" instead of putting asterisks everywhere.

A button that names the result. "Send message" beats "Submit". Keep the button enabled: a disabled button gives no reason why it won't work, while an enabled one can show the errors when pressed.

Validation and error messages

Check each field when the person leaves it, not on every keystroke. In Luke Wroblewski's inline validation study for A List Apart (1 September 2009, 22 participants with the usability firm Etre), the best inline validation version gave a 22% higher success rate, 22% fewer errors, 31% higher satisfaction and 42% faster completion than validating after submit. Checking after people left a field was faster than checking while they typed, because people kept typing and waiting for the message to change.

Write errors that say what to do:

  • "Enter an email address like name@example.com", not "Invalid input".
  • Put the error next to the field, in text, not only as a red border.
  • Keep everything the person typed. Never clear the form after an error.
  • If the server rejects the form, show a summary at the top that links to each field.

The success state and what happens next

Replace the form with a short message that confirms it sent, says who will reply and roughly when, and offers something to read while they wait. Send a confirmation email with a copy of their message. If the send fails, keep the message intact and offer an email address instead.

Spam protection without puzzles

A visible CAPTCHA hands your spam problem to your visitor. I use layers people never see:

  1. A honeypot field. A field hidden from people with CSS and from screen readers, which bots tend to fill. If it has a value, the server drops the message.
  2. An invisible check. Cloudflare's Turnstile aims to confirm a visitor is human without showing a puzzle, and works on sites that don't route traffic through Cloudflare. Its server-side validation docs say you must call the Siteverify API, and that each token is single use and valid for 300 seconds. The widget alone protects nothing.
  3. Server rules. Rate limits per address, a length limit on the message, and validation on the server, because anything in the browser can be skipped.

Contact form examples from live sites

I opened each of these on 10 November 2026 and read the HTML, not just the screenshot.

  • Resend's contact page is close to the minimum: two fields, "Email address" and "How can we help?", each with a label, and the email field marked type="email". The submit button arrives disabled in the page HTML, which is the one thing I'd change.
  • Vercel's contact sales page asks for full name, company email, country, company website and "How can we help you?", with a label on each. The email field uses autocomplete="email" but type="text", so phones don't show the email keyboard.
  • PostHog's talk to a human page asks for email, company, monthly active users and what you want to talk about, and leaves "Where did you hear about us?" as the one unstarred field. The usage question tells them the size of the account before anyone replies.
  • Basecamp's support page starts with a topic drop-down, then the message, an optional file upload, email and account URL. The spam check, hCaptcha, is attached to the "Send support request" button instead of sitting as a box in the form.

Accessibility: the WCAG 2.2 criteria that apply

These are the WCAG 2.2 success criteria I check on every contact form:

  • 3.3.2 Labels or Instructions (A): a label or instruction for every field.
  • 1.3.5 Identify Input Purpose (AA): name, email and phone fields carry autocomplete values, so their purpose is machine-readable.
  • 3.3.1 Error Identification (A) and 3.3.3 Error Suggestion (AA): errors are described in text, with a fix where one is known.
  • 3.3.7 Redundant Entry (A): in a stepped form, don't make people type again what they already entered; the W3C understanding page allows filling it in or offering it for selection.
  • 4.1.3 Status Messages (AA): "Sending" and "Message sent" are announced to screen readers without moving focus.
  • 2.4.7 Focus Visible (AA) and 2.4.11 Focus Not Obscured (AA): a clear focus ring that a sticky header or cookie banner never entirely hides.
  • 2.5.8 Target Size (AA): controls at least 24 by 24 CSS pixels, with exceptions.

3.3.8 Accessible Authentication covers logging in only, per its W3C understanding page, so a contact form is out of scope. Its reasoning still applies: a memory or transcription puzzle stops some people from sending at all.

Privacy and consent basics

This is general information, not legal advice. If your visitors are in the EU or UK, GDPR applies to every message they send you.

  • Collect less. Article 5(1)(c) requires data "limited to what is necessary": the fewest-fields rule, as law.
  • Say what happens to the data. Article 13 lists what to tell people at collection, including who you are, why, the legal basis and how long you keep it. A privacy notice link under the button covers it.
  • Replying needs no tickbox. Answering an enquiry usually rests on steps taken at the person's request before a contract, or on legitimate interests (Article 6), not consent.
  • Marketing does. If you want to add them to a newsletter, use a separate, unticked box. Recital 32 says pre-ticked boxes do not count as consent.

Mobile: input types and autocomplete

On a phone, the type sets the keyboard and autocomplete lets the browser fill the field, using tokens listed on MDN's autocomplete reference.

Fieldtypeautocomplete
Nametextname
Emailemailemail (or work email)
Phoneteltel
Companytextorganization
Messagetextareaoff is fine

Keep field text large enough to read without zooming, and make the button full width on small screens.

The HTML behind a good contact form

<form method="post" action="/contact" novalidate>
  <label for="name">Name</label>
  <input id="name" name="name" autocomplete="name" required>

  <label for="email">Email</label>
  <input id="email" name="email" type="email"
         autocomplete="email" required
         aria-describedby="email-error">
  <p id="email-error" hidden>Enter an email address like name@example.com</p>

  <label for="message">How can I help?</label>
  <textarea id="message" name="message" rows="5" required></textarea>

  <div class="hp" aria-hidden="true">
    <label for="website">Leave this empty</label>
    <input id="website" name="website" tabindex="-1" autocomplete="off">
  </div>

  <button type="submit">Send message</button>
  <p>Your reply time goes here. <a href="/privacy">How your details are used</a>.</p>
  <p role="status"></p>
</form>

novalidate swaps the browser's pop-up bubbles for your inline messages, while required still informs assistive technology. CSS hides the .hp honeypot. The empty role="status" paragraph is where "Sending" and "Message sent" appear. Put in a reply time you can keep.

Where the contact form sits on a landing page

On a landing page the form is the finish line: it sits after the promise and the proof, with the same action repeated higher up as a button that scrolls to it. Before launch, I test it on a real phone with autofill, with mistakes and with a double tap, which is part of my landing page launch checklist. After launch, measure form starts against messages sent, by device; my guide to landing page conversion rate covers how.

Frequently asked questions

How many fields should a contact form have?

As few as you need to reply well. For most businesses that's name, email and message. Add phone or company only if it changes how you respond, and mark extra fields as optional.

Should contact form labels go above or inside the fields?

Above, and always visible. Placeholder text vanishes when someone types and is often mistaken for an answer.

Do I need a CAPTCHA on my contact form?

Usually not a visible one. A honeypot, an invisible check such as Turnstile verified on your server, and rate limits handle spam without a puzzle.

Does a contact form need a consent checkbox under GDPR?

Not to reply to the enquiry, which usually rests on another legal basis. You do need a privacy notice link, and a separate unticked box if you also want to send marketing. This is general information, not legal advice.

What should happen after someone submits a contact form?

Show a message that confirms it sent and says who will reply and when, then email them a copy.

Sources and method

I read every source and the HTML of every live contact page on 10 November 2026. Pages change, so check again before you copy a pattern.

  • HubSpot, Dan Zarrella, Which types of form fields lower landing page conversions, date read 10 November 2026: blog.hubspot.com
  • Baymard Institute, Edward Scott, average checkout flow form fields, 26 June 2024, date read 10 November 2026: baymard.com
  • Nielsen Norman Group, Placeholders in form fields are harmful, 11 May 2014, date read 10 November 2026: nngroup.com
  • A List Apart, Luke Wroblewski, Inline validation in web forms, 1 September 2009, date read 10 November 2026: alistapart.com
  • Cloudflare, Turnstile overview and server-side validation, date read 10 November 2026: developers.cloudflare.com
  • W3C, WCAG 2.2 and the Understanding pages for 3.3.7 and 3.3.8, date read 10 November 2026: w3.org
  • GDPR Articles 5, 6 and 13 and Recital 32, date read 10 November 2026: gdpr-info.eu
  • MDN, HTML autocomplete attribute, date read 10 November 2026: developer.mozilla.org
  • Contact pages of Stripe, Resend, Vercel, PostHog and Basecamp, HTML read 10 November 2026.

If you want a landing page whose contact form is designed, built and tested as one piece of work, book a free 30 minute intro call. After it, you get a written scope and one fixed quote.

Tags: Contact forms, Forms, Landing pages, Accessibility, Conversion

Keep reading

Let’s look at your product.

A free 30 minute call. You leave with a clear next step, whether we work together or not.

Book a free intro call